diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-04-01 21:06:41 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-04-01 21:21:06 +0100 |
commit | 0e88410a03cc4d141c912ef451de15399c7c9e23 (patch) | |
tree | 82cc225fddf18da427ee73121c2d500866bd3448 /desktop/inc/app.hxx | |
parent | 8f6c69259dfc2ffe2fc9dfd0c421dd58f6e13f36 (diff) |
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/app.hxx')
-rw-r--r-- | desktop/inc/app.hxx | 4 |
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; |