summaryrefslogtreecommitdiff
path: root/desktop/source
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/source')
-rw-r--r--desktop/source/app/app.cxx5
-rw-r--r--desktop/source/app/officeipcthread.cxx9
2 files changed, 4 insertions, 10 deletions
diff --git a/desktop/source/app/app.cxx b/desktop/source/app/app.cxx
index ade68fd5efc0..f65f93d63f80 100644
--- a/desktop/source/app/app.cxx
+++ b/desktop/source/app/app.cxx
@@ -383,13 +383,12 @@ void FatalError(const OUString& sMessage)
_exit(EXITHELPER_FATAL_ERROR);
}
-struct theCommandLineArgs : public rtl::Static< CommandLineArgs, theCommandLineArgs > {};
-
}
CommandLineArgs& Desktop::GetCommandLineArgs()
{
- return theCommandLineArgs::get();
+ static CommandLineArgs theCommandLineArgs;
+ return theCommandLineArgs;
}
OUString ReplaceStringHookProc( const OUString& rStr )
diff --git a/desktop/source/app/officeipcthread.cxx b/desktop/source/app/officeipcthread.cxx
index a0e6b98cc006..61827856f3e9 100644
--- a/desktop/source/app/officeipcthread.cxx
+++ b/desktop/source/app/officeipcthread.cxx
@@ -635,15 +635,10 @@ void DbusIpcThread::close() {
#endif
-namespace
-{
- class theRequestHandlerMutex
- : public rtl::Static<osl::Mutex, theRequestHandlerMutex> {};
-}
-
::osl::Mutex& RequestHandler::GetMutex()
{
- return theRequestHandlerMutex::get();
+ static ::osl::Mutex theRequestHandlerMutex;
+ return theRequestHandlerMutex;
}
void RequestHandler::SetDowning()