diff options
author | Noel Grandin <noel@peralex.com> | 2013-08-28 15:17:08 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-08-29 09:30:18 +0200 |
commit | f9e78cd49f3c22b969531fa787ca63261d548f80 (patch) | |
tree | c2e34df65f751fdcff92a443d8071cf466327c0f /sfx2/source/doc/objserv.cxx | |
parent | 35c24f9b6e08ef1328df01b2d3d11ef518897130 (diff) |
convert sfx2/source/doc/* from String to OUString
Change-Id: Id9a58c4dca372dc36bdd8a359c7c0101cfffd88c
Diffstat (limited to 'sfx2/source/doc/objserv.cxx')
-rw-r--r-- | sfx2/source/doc/objserv.cxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/sfx2/source/doc/objserv.cxx b/sfx2/source/doc/objserv.cxx index 9e31980ba4f9..415723c61bf9 100644 --- a/sfx2/source/doc/objserv.cxx +++ b/sfx2/source/doc/objserv.cxx @@ -113,17 +113,17 @@ using namespace ::com::sun::star::task; class SfxSaveAsContext_Impl { - String& _rNewNameVar; - String _aNewName; + OUString& _rNewNameVar; + OUString _aNewName; public: - SfxSaveAsContext_Impl( String &rNewNameVar, - const String &rNewName ) + SfxSaveAsContext_Impl( OUString &rNewNameVar, + const OUString &rNewName ) : _rNewNameVar( rNewNameVar ), _aNewName( rNewName ) { rNewNameVar = rNewName; } ~SfxSaveAsContext_Impl() - { _rNewNameVar.Erase(); } + { _rNewNameVar = ""; } }; //==================================================================== @@ -295,7 +295,7 @@ sal_Bool SfxObjectShell::APISaveAs_Impl if ( GetMedium() ) { - String aFilterName; + OUString aFilterName; SFX_ITEMSET_ARG( aParams, pFilterNameItem, SfxStringItem, SID_FILTER_NAME, sal_False ); if( pFilterNameItem ) { @@ -313,7 +313,7 @@ sal_Bool SfxObjectShell::APISaveAs_Impl } // in case no filter defined use default one - if( !aFilterName.Len() ) + if( aFilterName.isEmpty() ) { const SfxFilter* pFilt = SfxFilter::GetDefaultFilterFromFactory(GetFactory().GetFactoryName()); @@ -478,7 +478,7 @@ void SfxObjectShell::ExecFile_Impl(SfxRequest &rReq) bReadOnly = pROItem->GetValue(); // collect data for dialog - String aURL, aTitle; + OUString aURL, aTitle; if ( HasName() ) { aURL = GetMedium()->GetName(); @@ -1258,8 +1258,8 @@ void SfxObjectShell::ExecView_Impl(SfxRequest &rReq) pFrame->ExecuteSlot( rReq ); else { - String aFileName( GetObjectShell()->GetMedium()->GetName() ); - if ( aFileName.Len() ) + OUString aFileName( GetObjectShell()->GetMedium()->GetName() ); + if ( !aFileName.isEmpty() ) { SfxStringItem aName( SID_FILE_NAME, aFileName ); SfxBoolItem aCreateView( SID_OPEN_NEW_VIEW, sal_True ); |