summaryrefslogtreecommitdiffstats
path: root/desktop/inc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-04-01 21:06:41 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-04-01 21:21:06 +0100
commit0e88410a03cc4d141c912ef451de15399c7c9e23 (patch)
tree82cc225fddf18da427ee73121c2d500866bd3448 /desktop/inc
parentLibreOffice-3.5 development started in master (diff)
downloadcore-0e88410a03cc4d141c912ef451de15399c7c9e23.tar.gz
core-0e88410a03cc4d141c912ef451de15399c7c9e23.zip
Use our rtl::Static pattern here
avoid memleak, and remove excessive pointer/new foo, and ensure thread-safety on some compilers while leaving the door open to skip it with gcc, and help out helgrind
Diffstat (limited to 'desktop/inc')
-rw-r--r--desktop/inc/app.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/desktop/inc/app.hxx b/desktop/inc/app.hxx
index 9872bbeefd58..560b1b0b0860 100644
--- a/desktop/inc/app.hxx
+++ b/desktop/inc/app.hxx
@@ -104,7 +104,7 @@ class Desktop : public Application
static void HandleAppEvent( const ApplicationEvent& rAppEvent );
static ResMgr* GetDesktopResManager();
- static CommandLineArgs* GetCommandLineArgs();
+ static CommandLineArgs& GetCommandLineArgs();
void HandleBootstrapErrors( BootstrapError );
void SetBootstrapError( BootstrapError nError )
@@ -169,7 +169,7 @@ class Desktop : public Application
::rtl::OUString CreateErrorMsgString( utl::Bootstrap::FailureCode nFailureCode,
const ::rtl::OUString& aFileURL );
- static void PreloadModuleData( CommandLineArgs* );
+ static void PreloadModuleData( const CommandLineArgs& );
static void PreloadConfigurationData();
Reference<XStatusIndicator> m_rSplashScreen;