Apache OpenOffice (AOO) Bugzilla – Issue 54902
Remove unnecessary static function in cppuhelper/bootstrap.cxx
Last modified: 2006-11-09 09:19:28 UTC
Change <old> 111 static void MyDummySymbolWithinLibrary(){} 112 OUString const & get_this_libpath() 113 { 114 static OUString s_path; 115 if (0 == s_path.getLength()) 116 { 117 OUString path; 118 Module::getUrlFromAddress( (void*) MyDummySymbolWithinLibrary, path ); 119 path = path.copy( 0, path.lastIndexOf( '/' ) ); 120 MutexGuard guard( Mutex::getGlobalMutex() ); 121 if (0 == s_path.getLength()) 122 s_path = path; 123 } 124 return s_path; 125 } </old> to <new> 112 OUString const & get_this_libpath() 113 { 114 static OUString s_path; 115 if (0 == s_path.getLength()) 116 { 117 OUString path; 118 Module::getUrlFromAddress( (void*)(get_this_libpath), path ); 119 path = path.copy( 0, path.lastIndexOf( '/' ) ); 120 MutexGuard guard( Mutex::getGlobalMutex() ); 121 if (0 == s_path.getLength()) 122 s_path = path; 123 } 124 return s_path; 125 } </new> cyb->kr: Assigning to you, as already discussed. Just a reminder for you :-).
.
Please verify.
verified
set target 2.2