diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-06-26 13:54:42 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-06-26 13:55:36 +0200 |
commit | 5897e103b64db369fe62f64f32267018fdb70f52 (patch) | |
tree | ae78937d21124278e7cdf4618abd70e9589bb871 /xmloff | |
parent | ba257d74588335f5989a2fa553a7441b7c89e600 (diff) |
loplugin:stringconstant: handle OUString+=OUString(literal)
Change-Id: I44c30ef19661d3274a4131dd05a5c786263fae59
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/draw/shapeexport.cxx | 6 | ||||
-rw-r--r-- | xmloff/source/draw/ximpbody.cxx | 5 | ||||
-rw-r--r-- | xmloff/source/forms/elementimport.cxx | 2 |
3 files changed, 5 insertions, 8 deletions
diff --git a/xmloff/source/draw/shapeexport.cxx b/xmloff/source/draw/shapeexport.cxx index d4aee6c535d3..be6b76db744e 100644 --- a/xmloff/source/draw/shapeexport.cxx +++ b/xmloff/source/draw/shapeexport.cxx @@ -3866,10 +3866,8 @@ void ImpExportEquations( SvXMLExport& rExport, const uno::Sequence< OUString >& nIndex = aStr.indexOf( '?', nIndex ); if ( nIndex != -1 ) { - OUString aNew( aStr.copy( 0, nIndex + 1 ) ); - aNew += OUString('f'); - aNew += aStr.copy( nIndex + 1, ( aStr.getLength() - nIndex ) - 1 ); - aStr = aNew; + aStr = aStr.copy(0, nIndex + 1) + "f" + + aStr.copy(nIndex + 1, aStr.getLength() - nIndex - 1); nIndex++; } } while( nIndex != -1 ); diff --git a/xmloff/source/draw/ximpbody.cxx b/xmloff/source/draw/ximpbody.cxx index c1f8f0824faa..266135be6276 100644 --- a/xmloff/source/draw/ximpbody.cxx +++ b/xmloff/source/draw/ximpbody.cxx @@ -193,9 +193,8 @@ SdXMLDrawPageContext::SdXMLDrawPageContext( SdXMLImport& rImport, OUString aFileName( maHREF.copy( 0, nIndex ) ); OUString aBookmarkName( maHREF.copy( nIndex+1 ) ); - maHREF = GetImport().GetAbsoluteReference( aFileName ); - maHREF += OUString(static_cast<sal_Unicode>('#')); - maHREF += aBookmarkName; + maHREF = GetImport().GetAbsoluteReference( aFileName ) + "#" + + aBookmarkName; } xProps->setPropertyValue("BookmarkURL", uno::makeAny( maHREF ) ); diff --git a/xmloff/source/forms/elementimport.cxx b/xmloff/source/forms/elementimport.cxx index 737f7e002ca2..8aed521fd350 100644 --- a/xmloff/source/forms/elementimport.cxx +++ b/xmloff/source/forms/elementimport.cxx @@ -1639,7 +1639,7 @@ namespace xmloff // (somewhere else) to determine that a non-standard binding should be created. // This hack is acceptable for OOo 1.1.1, since the file format for value // bindings of form controls is to be changed afterwards, anyway. - sBoundCellAddress += OUString( ":index" ); + sBoundCellAddress += ":index"; } OControlImport::doRegisterCellValueBinding( sBoundCellAddress ); |