diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-06-25 12:37:12 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-06-25 12:38:37 +0200 |
commit | ca30ba7a390e770d4b420ce02ae769f54a682404 (patch) | |
tree | bd4c2dd1833581c6ec8e08dbf33f5c427d59598f /sd | |
parent | cb0a4a43a52b2f9230dc676e8ffc8700d006ec0c (diff) |
loplugin:stringconstant: Flag more inefficiencies
Change-Id: I397db197dfa3108ee3c025a60dd9e437dd05a95d
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/filter/eppt/pptexanimations.cxx | 2 | ||||
-rw-r--r-- | sd/source/filter/html/htmlex.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sd/source/filter/eppt/pptexanimations.cxx b/sd/source/filter/eppt/pptexanimations.cxx index b629df7a6d7c..272916d3b267 100644 --- a/sd/source/filter/eppt/pptexanimations.cxx +++ b/sd/source/filter/eppt/pptexanimations.cxx @@ -920,7 +920,7 @@ sal_uInt32 AnimationExporter::GetPresetID( const OUString& rPreset, sal_uInt32 n sal_uInt32 nPresetId = 0; bPresetId = false; - if ( rPreset.match( OUString( "ppt_" ), 0 ) ) + if ( rPreset.match("ppt_", 0) ) { sal_Int32 nLast = rPreset.lastIndexOf( '_' ); if ( ( nLast != -1 ) && ( ( nLast + 1 ) < rPreset.getLength() ) ) diff --git a/sd/source/filter/html/htmlex.cxx b/sd/source/filter/html/htmlex.cxx index e815e07dba22..f1bc7948e7ee 100644 --- a/sd/source/filter/html/htmlex.cxx +++ b/sd/source/filter/html/htmlex.cxx @@ -3255,8 +3255,8 @@ bool HtmlErrorContext::GetString( sal_uLong, OUString& rCtxStr ) rCtxStr = SdResId( mnResId ).toString(); - rCtxStr = rCtxStr.replaceAll( OUString("$(URL1)"), maURL1 ); - rCtxStr = rCtxStr.replaceAll( OUString("$(URL2)"), maURL2 ); + rCtxStr = rCtxStr.replaceAll( "$(URL1)", maURL1 ); + rCtxStr = rCtxStr.replaceAll( "$(URL2)", maURL2 ); return true; } |