Issue 54902 - Remove unnecessary static function in cppuhelper/bootstrap.cxx
Summary: Remove unnecessary static function in cppuhelper/bootstrap.cxx
Status: CLOSED FIXED
Alias: None
Product: udk
Classification: Code
Component: code (show other issues)
Version: current
Hardware: All All
: P3 Trivial (vote)
Target Milestone: OOo 2.2
Assignee: joachim.lingner
QA Contact: issues@udk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-21 13:20 UTC by christianjunker
Modified: 2006-11-09 09:19 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description christianjunker 2005-09-21 13:20:44 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 :-).
Comment 1 kay.ramme 2005-09-26 11:50:56 UTC
.
Comment 2 kay.ramme 2006-10-06 11:52:36 UTC
.
Comment 3 kay.ramme 2006-10-09 15:59:12 UTC
.
Comment 4 kay.ramme 2006-10-12 16:41:34 UTC
Please verify.
Comment 5 kay.ramme 2006-10-12 16:49:40 UTC
.
Comment 6 joachim.lingner 2006-10-13 15:37:35 UTC
verified
Comment 7 Martin Hollmichel 2006-10-27 12:48:45 UTC
set target 2.2
Comment 8 kay.ramme 2006-11-09 09:19:28 UTC
.