diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-08-30 15:29:41 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-08-30 15:29:41 +0200 |
commit | 32f9120fa076ef9dcee1d29e0a596a36aade353c (patch) | |
tree | 8f5ca4bc9f37598ee2e04726a124ed767a826edd /sw/source/core/edit | |
parent | 185c3c8207de78ebb4f4dc053b5fe16f810929cc (diff) |
loplugin:stringconstant: adapt to improved OUStringLiteral1 (sw)
Change-Id: Ifa1a6bafd3628b48ebceb09f8cd864361848e81c
Diffstat (limited to 'sw/source/core/edit')
-rw-r--r-- | sw/source/core/edit/autofmt.cxx | 10 | ||||
-rw-r--r-- | sw/source/core/edit/editsh.cxx | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/sw/source/core/edit/autofmt.cxx b/sw/source/core/edit/autofmt.cxx index 61a87aa71012..22ba7c6e595c 100644 --- a/sw/source/core/edit/autofmt.cxx +++ b/sw/source/core/edit/autofmt.cxx @@ -858,11 +858,11 @@ sal_uInt16 SwAutoFormat::GetDigitLevel( const SwTextNode& rNd, sal_Int32& rPos, } if( pNumTypes ) - *pNumTypes += OUString(cNumTyp); + *pNumTypes += OUStringLiteral1(cNumTyp); eScan = eScan | CHG; } else if( pNumTypes && !(eScan & eTmpScan) ) - *pNumTypes += OUString(cNumTyp); + *pNumTypes += OUStringLiteral1(cNumTyp); eScan &= ~DELIM; // remove Delim @@ -956,9 +956,9 @@ CHECK_ROMAN_5: nClosingParentheses++; // only if no numbers were read until here if( pPrefix && !( eScan & ( NO_DELIM | CHG )) ) - *pPrefix += OUString(rText[nPos]); + *pPrefix += OUStringLiteral1(rText[nPos]); else if( pPostfix ) - *pPostfix += OUString(rText[nPos]); + *pPostfix += OUStringLiteral1(rText[nPos]); if( NO_DELIM & eScan ) { @@ -1631,7 +1631,7 @@ void SwAutoFormat::BuildEnum( sal_uInt16 nLvl, sal_uInt16 nDigitLevel ) { OUString sChgStr('\t'); if( bChgBullet ) - sChgStr = OUString( m_aFlags.cBullet ) + sChgStr; + sChgStr = OUStringLiteral1( m_aFlags.cBullet ) + sChgStr; m_pDoc->getIDocumentContentOperations().InsertString( m_aDelPam, sChgStr ); SfxItemSet aSet( m_pDoc->GetAttrPool(), aTextNodeSetRange ); diff --git a/sw/source/core/edit/editsh.cxx b/sw/source/core/edit/editsh.cxx index 7fa98e0be980..20b576547a53 100644 --- a/sw/source/core/edit/editsh.cxx +++ b/sw/source/core/edit/editsh.cxx @@ -553,7 +553,7 @@ OUString SwEditShell::Calculate() aFormel += sVar; } else - aFormel += OUString(ch); + aFormel += OUStringLiteral1(ch); } } } |