update dev300-m58
[ooovba.git] / applied_patches / 0107-hack-readd-GetStringParam.diff
blobb79badd156439bbff49153a3692b406c4a506f7b
1 --- desktop/source/app/cmdlineargs.hxx-old 2008-05-21 00:01:55.000000000 +0200
2 +++ desktop/source/app/cmdlineargs.hxx 2008-05-21 00:01:45.000000000 +0200
3 @@ -123,6 +123,8 @@
4 // generic methods to access parameter
5 void SetBoolParam( BoolParam eParam, sal_Bool bNewValue );
7 + const rtl::OUString& GetStringParam( StringParam eParam ) const;
9 // Access to bool parameters
10 sal_Bool IsMinimized() const;
11 sal_Bool IsInvisible() const;
12 --- desktop/source/app/cmdlineargs.cxx-old 2008-05-21 00:02:22.000000000 +0200
13 +++ desktop/source/app/cmdlineargs.cxx 2008-05-20 23:55:48.000000000 +0200
14 @@ -609,6 +609,14 @@
15 m_aBoolParams[eParam] = bNewValue;
18 +const rtl::OUString& CommandLineArgs::GetStringParam( StringParam eParam ) const
20 + osl::MutexGuard aMutexGuard( m_aMutex );
22 + OSL_ASSERT( ( eParam >= 0 && eParam < CMD_STRINGPARAM_COUNT ) );
23 + return m_aStrParams[eParam];
26 sal_Bool CommandLineArgs::IsMinimized() const
28 osl::MutexGuard aMutexGuard( m_aMutex );