Kaydet (Commit) 85c6b88e authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:stringconstant: handle OUString+=OUString(literal)

Change-Id: I0d1d7f598a0c61d36d72f9d51cccdcd1071c30b6
üst cf029c12
...@@ -112,7 +112,8 @@ void InsertBookmarkAsPage_FindDuplicateLayouts::operator()( SdDrawDocument& rDoc ...@@ -112,7 +112,8 @@ void InsertBookmarkAsPage_FindDuplicateLayouts::operator()( SdDrawDocument& rDoc
// about this // about this
if( bRenameDuplicates && aTest != OUString( SdResId( STR_LAYOUT_DEFAULT_NAME ) ) && pTestPage->getHash() != pBMMPage->getHash() ) if( bRenameDuplicates && aTest != OUString( SdResId( STR_LAYOUT_DEFAULT_NAME ) ) && pTestPage->getHash() != pBMMPage->getHash() )
{ {
pBookmarkDoc->RenameLayoutTemplate( pBMMPage->GetLayoutName(), OUString(pBMMPage->GetName())+=OUString("_") ); pBookmarkDoc->RenameLayoutTemplate(
pBMMPage->GetLayoutName(), pBMMPage->GetName() + "_");
aLayout = pBMMPage->GetName(); aLayout = pBMMPage->GetName();
break; break;
......
...@@ -520,8 +520,7 @@ void CustomAnimationPane::updateControls() ...@@ -520,8 +520,7 @@ void CustomAnimationPane::updateControls()
if( !aUIName.isEmpty() ) if( !aUIName.isEmpty() )
{ {
aTemp += OUString( (sal_Unicode)' ' ); aTemp += " " + aUIName;
aTemp += aUIName;
mpFTEffect->SetText( aTemp ); mpFTEffect->SetText( aTemp );
} }
......
...@@ -517,9 +517,9 @@ BitmapEx AnnotationTag::CreateAnnotationBitmap( bool bSelected ) ...@@ -517,9 +517,9 @@ BitmapEx AnnotationTag::CreateAnnotationBitmap( bool bSelected )
{ {
ScopedVclPtrInstance< VirtualDevice > pVDev; ScopedVclPtrInstance< VirtualDevice > pVDev;
OUString sAuthor( getInitials( mxAnnotation->getAuthor() ) ); OUString sAuthor(
sAuthor += OUString( ' ' ); getInitials(mxAnnotation->getAuthor()) + " "
sAuthor += OUString::number( mnIndex ); + OUString::number(mnIndex));
pVDev->SetFont( mrFont ); pVDev->SetFont( mrFont );
......
...@@ -844,8 +844,7 @@ OUString SdTPAction::GetEditText( bool bFullDocDestination ) ...@@ -844,8 +844,7 @@ OUString SdTPAction::GetEditText( bool bFullDocDestination )
OUString aTmpStr( m_pLbTreeDocument->GetSelectEntry() ); OUString aTmpStr( m_pLbTreeDocument->GetSelectEntry() );
if( !aTmpStr.isEmpty() ) if( !aTmpStr.isEmpty() )
{ {
aStr += OUString(DOCUMENT_TOKEN); aStr += OUStringLiteral1<DOCUMENT_TOKEN>() + aTmpStr;
aStr += aTmpStr;
} }
} }
......
...@@ -127,9 +127,8 @@ void FuPresentationObjects::DoExecute( SfxRequest& ) ...@@ -127,9 +127,8 @@ void FuPresentationObjects::DoExecute( SfxRequest& )
else else
{ {
ePO = (PresentationObjects) ( PO_OUTLINE_1 + nDepth - 1 ); ePO = (PresentationObjects) ( PO_OUTLINE_1 + nDepth - 1 );
aStyleName += SD_RESSTR(STR_LAYOUT_OUTLINE); aStyleName += SD_RESSTR(STR_LAYOUT_OUTLINE) + " "
aStyleName += OUString(' ') ; + OUString::number(nDepth);
aStyleName += OUString::number( nDepth ) ;
} }
SfxStyleSheetBasePool* pStyleSheetPool = mpDocSh->GetStyleSheetPool(); SfxStyleSheetBasePool* pStyleSheetPool = mpDocSh->GetStyleSheetPool();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment