diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-06-25 23:10:14 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-06-26 13:34:03 +0100 |
commit | d9a00ace2ce3423c1ac08eee0bd1fd36dace8d3e (patch) | |
tree | 2a3900905792268c39f0c9596a5eb9ecdc8a3c61 /sfx2/source/dialog/mgetempl.cxx | |
parent | 4f25eb2c4eb7b5ce265eefe25a5ab84a39daf574 (diff) |
tidy some resource strings
Change-Id: I611a276d048121084ec842d062129e042f3baea5
Diffstat (limited to 'sfx2/source/dialog/mgetempl.cxx')
-rw-r--r-- | sfx2/source/dialog/mgetempl.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sfx2/source/dialog/mgetempl.cxx b/sfx2/source/dialog/mgetempl.cxx index 7d7926df6824..f9bc26bc05dd 100644 --- a/sfx2/source/dialog/mgetempl.cxx +++ b/sfx2/source/dialog/mgetempl.cxx @@ -121,7 +121,7 @@ SfxManageStyleSheetPage::SfxManageStyleSheetPage( Window* pParent, const SfxItem if ( !pStyle->GetName().Len() && pPool ) { // NullString as Name -> generate Name - String aNoName( SfxResId( STR_NONAME ) ); + String aNoName( SfxResId(STR_NONAME).toString() ); sal_uInt16 nNo = 1; String aNo( aNoName ); aNoName += String::CreateFromInt32( nNo ); @@ -180,7 +180,7 @@ SfxManageStyleSheetPage::SfxManageStyleSheetPage( Window* pParent, const SfxItem { if ( pStyle->HasClearParentSupport() ) // the base template can be set to NULL - aBaseLb.InsertEntry( String( SfxResId( STR_NONE ) ) ); + aBaseLb.InsertEntry( SfxResId(STR_NONE).toString() ); SfxStyleSheetBase* pPoolStyle = pPool->First(); @@ -482,11 +482,11 @@ void SfxManageStyleSheetPage::Reset( const SfxItemSet& /*rAttrSet*/ ) pStyle->SetParent( aParent ); if ( !aParent.Len() ) - aBaseLb.SelectEntry( String( SfxResId( STR_NONE ) ) ); + aBaseLb.SelectEntry( SfxResId(STR_NONE).toString() ); else aBaseLb.SelectEntry( aParent ); - if ( String( SfxResId( STR_STANDARD ) ) == aName ) + if ( SfxResId(STR_STANDARD).toString().equals(aName) ) { // the default template can not be linked aBaseFt.Disable(); @@ -612,7 +612,7 @@ int SfxManageStyleSheetPage::DeactivatePage( SfxItemSet* pItemSet ) { String aParentEntry( aBaseLb.GetSelectEntry() ); - if ( String( SfxResId( STR_NONE ) ) == aParentEntry || aParentEntry == pStyle->GetName() ) + if ( SfxResId(STR_NONE).toString().equals(aParentEntry) || aParentEntry == pStyle->GetName() ) aParentEntry.Erase(); if ( pStyle->GetParent() != aParentEntry ) |