diff options
author | Noel Grandin <noel@peralex.com> | 2013-09-20 10:37:02 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-10-04 08:48:51 +0200 |
commit | be014d6ec43049d8deb1341c16c743fe7bc4c566 (patch) | |
tree | fc4985f80140bee82ae4b2b019f78d328391e67a /sc/source/ui/undo | |
parent | 7c1c4a8af60349bb15ec0b55dabc5d3d71c7f861 (diff) |
convert sc/.../undostyl.hxx from String to OUString
Change-Id: I4e8734e8c2fc56094eeea3155c6dab6858a7b11b
Diffstat (limited to 'sc/source/ui/undo')
-rw-r--r-- | sc/source/ui/undo/undostyl.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sc/source/ui/undo/undostyl.cxx b/sc/source/ui/undo/undostyl.cxx index 2d847c23d986..6000f997ebc7 100644 --- a/sc/source/ui/undo/undostyl.cxx +++ b/sc/source/ui/undo/undostyl.cxx @@ -125,17 +125,17 @@ static void lcl_DocStyleChanged( ScDocument* pDoc, SfxStyleSheetBase* pStyle, sa pHdl->ForgetLastPattern(); } -void ScUndoModifyStyle::DoChange( ScDocShell* pDocSh, const String& rName, +void ScUndoModifyStyle::DoChange( ScDocShell* pDocSh, const OUString& rName, SfxStyleFamily eStyleFamily, const ScStyleSaveData& rData ) { ScDocument* pDoc = pDocSh->GetDocument(); ScStyleSheetPool* pStlPool = pDoc->GetStyleSheetPool(); String aNewName = rData.GetName(); sal_Bool bDelete = ( aNewName.Len() == 0 ); // no new name -> delete style - sal_Bool bNew = ( rName.Len() == 0 && !bDelete ); // creating new style + sal_Bool bNew = ( rName.isEmpty() && !bDelete ); // creating new style SfxStyleSheetBase* pStyle = NULL; - if ( rName.Len() ) + if ( !rName.isEmpty() ) { // find old style to modify pStyle = pStlPool->Find( rName, eStyleFamily ); @@ -234,13 +234,13 @@ bool ScUndoModifyStyle::CanRepeat(SfxRepeatTarget& /* rTarget */) const // // apply page style // -ScUndoApplyPageStyle::ApplyStyleEntry::ApplyStyleEntry( SCTAB nTab, const String& rOldStyle ) : +ScUndoApplyPageStyle::ApplyStyleEntry::ApplyStyleEntry( SCTAB nTab, const OUString& rOldStyle ) : mnTab( nTab ), maOldStyle( rOldStyle ) { } -ScUndoApplyPageStyle::ScUndoApplyPageStyle( ScDocShell* pDocSh, const String& rNewStyle ) : +ScUndoApplyPageStyle::ScUndoApplyPageStyle( ScDocShell* pDocSh, const OUString& rNewStyle ) : ScSimpleUndo( pDocSh ), maNewStyle( rNewStyle ) { @@ -250,7 +250,7 @@ ScUndoApplyPageStyle::~ScUndoApplyPageStyle() { } -void ScUndoApplyPageStyle::AddSheetAction( SCTAB nTab, const String& rOldStyle ) +void ScUndoApplyPageStyle::AddSheetAction( SCTAB nTab, const OUString& rOldStyle ) { maEntries.push_back( ApplyStyleEntry( nTab, rOldStyle ) ); } |