From 0e88410a03cc4d141c912ef451de15399c7c9e23 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 1 Apr 2011 21:06:41 +0100 Subject: 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 --- desktop/inc/app.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'desktop/inc') 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 m_rSplashScreen; -- cgit