diff options
author | Noel Grandin <noel@peralex.com> | 2013-08-23 12:34:38 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-08-29 09:30:02 +0200 |
commit | 7c9188659d0882906ed917d5251d5faaf007a477 (patch) | |
tree | 74b7ab7be808657179820283fdbea0a973051fd1 /sfx2/source/doc/objxtor.cxx | |
parent | 99af8b070c5bff885511b29faf3c9df937297f81 (diff) |
convert include/sfx2/objsh.hxx from String to OUString
Change-Id: I9587190cea24da93ec0496f2eccf0d32d98980ee
Diffstat (limited to 'sfx2/source/doc/objxtor.cxx')
-rw-r--r-- | sfx2/source/doc/objxtor.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sfx2/source/doc/objxtor.cxx b/sfx2/source/doc/objxtor.cxx index dcb4f1bf42bd..526c499fd6b3 100644 --- a/sfx2/source/doc/objxtor.cxx +++ b/sfx2/source/doc/objxtor.cxx @@ -979,7 +979,7 @@ Reference< XInterface > SfxObjectShell::GetCurrentComponent() } -String SfxObjectShell::GetServiceNameFromFactory( const String& rFact ) +OUString SfxObjectShell::GetServiceNameFromFactory( const OUString& rFact ) { //! Remove everything behind name! String aFact( rFact ); @@ -1051,15 +1051,15 @@ String SfxObjectShell::GetServiceNameFromFactory( const String& rFact ) return aServiceName; } -SfxObjectShell* SfxObjectShell::CreateObjectByFactoryName( const String& rFact, SfxObjectCreateMode eMode ) +SfxObjectShell* SfxObjectShell::CreateObjectByFactoryName( const OUString& rFact, SfxObjectCreateMode eMode ) { return CreateObject( GetServiceNameFromFactory( rFact ), eMode ); } -SfxObjectShell* SfxObjectShell::CreateObject( const String& rServiceName, SfxObjectCreateMode eCreateMode ) +SfxObjectShell* SfxObjectShell::CreateObject( const OUString& rServiceName, SfxObjectCreateMode eCreateMode ) { - if ( rServiceName.Len() ) + if ( !rServiceName.isEmpty() ) { uno::Reference < frame::XModel > xDoc( ::comphelper::getProcessServiceFactory()->createInstance( rServiceName ), UNO_QUERY ); if ( xDoc.is() ) @@ -1169,7 +1169,7 @@ void SfxObjectShell::SetChangeRecording( bool /*bActivate*/ ) } -bool SfxObjectShell::SetProtectionPassword( const String & /*rPassword*/ ) +bool SfxObjectShell::SetProtectionPassword( const OUString & /*rPassword*/ ) { // currently this function needs to be overwritten by Writer and Calc only DBG_ASSERT( 0, "function not implemented" ); |