From 4d688beb2b2183ced387270e051dc25ee340fb4b Mon Sep 17 00:00:00 2001 From: Ivan Timofeev Date: Sat, 24 Aug 2013 22:22:45 +0400 Subject: String->OUString Change-Id: I43ab520187375d75009da43a2f75a541021fdbfb --- sd/source/ui/func/fucopy.cxx | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'sd/source/ui/func/fucopy.cxx') diff --git a/sd/source/ui/func/fucopy.cxx b/sd/source/ui/func/fucopy.cxx index ff433b7be9c0..88616c4e00f0 100644 --- a/sd/source/ui/func/fucopy.cxx +++ b/sd/source/ui/func/fucopy.cxx @@ -65,9 +65,8 @@ void FuCopy::DoExecute( SfxRequest& rReq ) if( mpView->AreObjectsMarked() ) { // Undo - String aString( mpView->GetDescriptionOfMarkedObjects() ); - aString.Append( sal_Unicode(' ') ); - aString.Append( SD_RESSTR( STR_UNDO_COPYOBJECTS ) ); + OUString aString( mpView->GetDescriptionOfMarkedObjects() ); + aString += " " + SD_RESSTR( STR_UNDO_COPYOBJECTS ); mpView->BegUndo( aString ); const SfxItemSet* pArgs = rReq.GetArgs(); @@ -173,9 +172,8 @@ void FuCopy::DoExecute( SfxRequest& rReq ) if( nNumber > 1 ) { - String aStr( SdResId( STR_OBJECTS ) ); - aStr.Append( sal_Unicode(' ') ); - aStr.Append( SD_RESSTR( STR_UNDO_COPYOBJECTS ) ); + OUString aStr( SD_RESSTR( STR_OBJECTS ) ); + aStr += " " + SD_RESSTR( STR_UNDO_COPYOBJECTS ); pProgress = new SfxProgress( mpDocSh, aStr, nNumber ); mpDocSh->SetWaitCursor( sal_True ); @@ -212,7 +210,7 @@ void FuCopy::DoExecute( SfxRequest& rReq ) { SfxItemSet aNewSet( mpViewShell->GetPool(), XATTR_FILLSTYLE, XATTR_FILLCOLOR, 0L ); aNewSet.Put( XFillStyleItem( XFILL_SOLID ) ); - aNewSet.Put( XFillColorItem( String(), aStartColor ) ); + aNewSet.Put( XFillColorItem( OUString(), aStartColor ) ); mpView->SetAttributes( aNewSet ); } @@ -274,7 +272,7 @@ void FuCopy::DoExecute( SfxRequest& rReq ) Color aNewColor( nRed, nGreen, nBlue ); SfxItemSet aNewSet( mpViewShell->GetPool(), XATTR_FILLSTYLE, XATTR_FILLCOLOR, 0L ); aNewSet.Put( XFillStyleItem( XFILL_SOLID ) ); - aNewSet.Put( XFillColorItem( String(), aNewColor ) ); + aNewSet.Put( XFillColorItem( OUString(), aNewColor ) ); mpView->SetAttributes( aNewSet ); } } -- cgit