diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-08-30 15:27:48 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-08-30 15:27:48 +0200 |
commit | 0c9a71a7b2fd0a004e980724460a3763b76eb772 (patch) | |
tree | 394278fbf5e430f7feb6c0f70e0a4fc1e004443e | |
parent | 56f21320f3214be0b361c09e08cf100a647d908a (diff) |
loplugin:stringconstant: adapt to improved OUStringLiteral1 (editeng)
Change-Id: If8d2eb5e02a107cc1805e349a70df54160fed02a
-rw-r--r-- | editeng/source/accessibility/AccessibleStaticTextBase.cxx | 10 | ||||
-rw-r--r-- | editeng/source/editeng/impedit4.cxx | 4 | ||||
-rw-r--r-- | editeng/source/items/textitem.cxx | 4 | ||||
-rw-r--r-- | editeng/source/lookuptree/Trie.cxx | 2 | ||||
-rw-r--r-- | editeng/source/misc/svxacorr.cxx | 2 | ||||
-rw-r--r-- | editeng/source/outliner/outliner.cxx | 2 |
6 files changed, 12 insertions, 12 deletions
diff --git a/editeng/source/accessibility/AccessibleStaticTextBase.cxx b/editeng/source/accessibility/AccessibleStaticTextBase.cxx index bacc1dc72d39..2e184f3e1a70 100644 --- a/editeng/source/accessibility/AccessibleStaticTextBase.cxx +++ b/editeng/source/accessibility/AccessibleStaticTextBase.cxx @@ -731,7 +731,7 @@ namespace accessibility // paragraphs inbetween are fully included for( ; i<aEndIndex.nPara; ++i ) { - aRes += OUString(cNewLine); + aRes += OUStringLiteral1(cNewLine); aRes += mpImpl->GetParagraph(i).getText(); } @@ -741,7 +741,7 @@ namespace accessibility //we need to add a "\n" before we add the last part of the string. if ( !bEnd && aEndIndex.nIndex ) { - aRes += OUString(cNewLine); + aRes += OUStringLiteral1(cNewLine); } aRes += mpImpl->GetParagraph(i).getTextRange( 0, aEndIndex.nIndex ); } @@ -750,11 +750,11 @@ namespace accessibility //or at the end of the result string. if ( bStart ) { - aRes = OUString(cNewLine) + aRes; + aRes = OUStringLiteral1(cNewLine) + aRes; } if ( bEnd ) { - aRes += OUString(cNewLine); + aRes += OUStringLiteral1(cNewLine); } return aRes; } @@ -890,7 +890,7 @@ namespace accessibility mpImpl->CorrectTextSegment( aResult, aPos.nPara ); if ( bLineBreak ) { - aResult.SegmentText = OUString(cNewLine) + aResult.SegmentText; + aResult.SegmentText = OUStringLiteral1(cNewLine) + aResult.SegmentText; } } diff --git a/editeng/source/editeng/impedit4.cxx b/editeng/source/editeng/impedit4.cxx index 1b97adc040fe..c231c84b121f 100644 --- a/editeng/source/editeng/impedit4.cxx +++ b/editeng/source/editeng/impedit4.cxx @@ -1886,7 +1886,7 @@ Reference< XSpellAlternatives > ImpEditEngine::ImpSpell( EditView* pEditView ) if ( cNext == '.' ) { aCurSel.Max().SetIndex( aCurSel.Max().GetIndex()+1 ); - aWord += OUString(cNext); + aWord += OUStringLiteral1(cNext); } } @@ -1937,7 +1937,7 @@ Reference< XSpellAlternatives > ImpEditEngine::ImpFindNextError(EditSelection& r if ( cNext == '.' ) { aCurSel.Max().SetIndex( aCurSel.Max().GetIndex()+1 ); - aWord += OUString(cNext); + aWord += OUStringLiteral1(cNext); } } diff --git a/editeng/source/items/textitem.cxx b/editeng/source/items/textitem.cxx index 64efe964b4e7..ae857c8706db 100644 --- a/editeng/source/items/textitem.cxx +++ b/editeng/source/items/textitem.cxx @@ -2839,9 +2839,9 @@ bool SvxTwoLinesItem::GetPresentation( SfxItemPresentation /*ePres*/, { rText = EE_RESSTR( RID_SVXITEMS_TWOLINES ); if( GetStartBracket() ) - rText = OUString(GetStartBracket()) + rText; + rText = OUStringLiteral1(GetStartBracket()) + rText; if( GetEndBracket() ) - rText += OUString(GetEndBracket()); + rText += OUStringLiteral1(GetEndBracket()); } return true; } diff --git a/editeng/source/lookuptree/Trie.cxx b/editeng/source/lookuptree/Trie.cxx index 8f2fddbd4bfd..cc5c126cbd95 100644 --- a/editeng/source/lookuptree/Trie.cxx +++ b/editeng/source/lookuptree/Trie.cxx @@ -120,7 +120,7 @@ void TrieNode::collectSuggestions(const OUString& sPath, vector<OUString>& rSugg void TrieNode::collectSuggestionsForCurrentNode(TrieNode* pCurrent, const OUString& sPath, vector<OUString>& rSuggestionList) { - OUString aStringPath = sPath + OUString(pCurrent->mCharacter); + OUString aStringPath = sPath + OUStringLiteral1(pCurrent->mCharacter); if(pCurrent->mMarker) { rSuggestionList.push_back(aStringPath); diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx index 490ae67e4d45..b726fe1209ff 100644 --- a/editeng/source/misc/svxacorr.cxx +++ b/editeng/source/misc/svxacorr.cxx @@ -1099,7 +1099,7 @@ bool SvxAutoCorrect::FnCorrectCapsLock( SvxAutoCorrDoc& rDoc, const OUString& rT aConverted += rCC.lowercase(OUString(rTxt[i])); else // This is not an alphabetic letter. Leave it as-is. - aConverted += OUString( rTxt[i] ); + aConverted += OUStringLiteral1( rTxt[i] ); } // Replace the word. diff --git a/editeng/source/outliner/outliner.cxx b/editeng/source/outliner/outliner.cxx index 2fabc4258180..4876df86961d 100644 --- a/editeng/source/outliner/outliner.cxx +++ b/editeng/source/outliner/outliner.cxx @@ -1872,7 +1872,7 @@ void Outliner::ImplCalcBulletText( sal_Int32 nPara, bool bRecalcLevel, bool bRec aBulletText += pFmt->GetPrefix(); if( pFmt->GetNumberingType() == SVX_NUM_CHAR_SPECIAL ) { - aBulletText += OUString(pFmt->GetBulletChar()); + aBulletText += OUStringLiteral1(pFmt->GetBulletChar()); } else if( pFmt->GetNumberingType() != SVX_NUM_NUMBER_NONE ) { |