diff options
author | MÁTÉ Gergely <sportember@caesar.elte.hu> | 2013-08-07 18:10:08 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2013-08-08 09:06:07 +0000 |
commit | c58f859ee6899bd5066bb754159d06e114405c96 (patch) | |
tree | 72046ad5fdd4061b6bb3b38d2c70df2525dd8e6f /sd/source/ui/app/sdmod1.cxx | |
parent | 52f79304a635ec3845c1d26b025a92b4c710f4e2 (diff) |
OUString conversion in sd in sdmod.hxx
Change-Id: I113289d6dc80669843fbbc49896760d6c47d7ef1
Reviewed-on: https://gerrit.libreoffice.org/5307
Reviewed-by: Miklos Vajna <vmiklos@suse.cz>
Tested-by: Miklos Vajna <vmiklos@suse.cz>
Diffstat (limited to 'sd/source/ui/app/sdmod1.cxx')
-rw-r--r-- | sd/source/ui/app/sdmod1.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sd/source/ui/app/sdmod1.cxx b/sd/source/ui/app/sdmod1.cxx index 61cfa61ff08b..42802ea8cd38 100644 --- a/sd/source/ui/app/sdmod1.cxx +++ b/sd/source/ui/app/sdmod1.cxx @@ -500,7 +500,7 @@ void SdModule::AddSummaryPage (SfxViewFrame* pViewFrame, SdDrawDocument* pDocume } } -SfxFrame* SdModule::CreateFromTemplate( const String& rTemplatePath, const Reference< XFrame >& i_rFrame ) +SfxFrame* SdModule::CreateFromTemplate( const OUString& rTemplatePath, const Reference< XFrame >& i_rFrame ) { SfxFrame* pFrame = 0; @@ -551,9 +551,9 @@ SfxFrame* SdModule::ExecuteNewDocument( SfxRequest& rReq ) //check whether we should load a template document const OUString aServiceName( "com.sun.star.presentation.PresentationDocument" ); - String aStandardTemplate( SfxObjectFactory::GetStandardTemplate( aServiceName ) ); + OUString aStandardTemplate( SfxObjectFactory::GetStandardTemplate( aServiceName ) ); - if( aStandardTemplate.Len() > 0 ) + if( !aStandardTemplate.isEmpty() ) { //load a template document pFrame = CreateFromTemplate( aStandardTemplate, xTargetFrame ); |