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

loplugin:stringconstant: Flag more inefficiencies

Change-Id: I397db197dfa3108ee3c025a60dd9e437dd05a95d
üst cb0a4a43
...@@ -920,7 +920,7 @@ sal_uInt32 AnimationExporter::GetPresetID( const OUString& rPreset, sal_uInt32 n ...@@ -920,7 +920,7 @@ sal_uInt32 AnimationExporter::GetPresetID( const OUString& rPreset, sal_uInt32 n
sal_uInt32 nPresetId = 0; sal_uInt32 nPresetId = 0;
bPresetId = false; bPresetId = false;
if ( rPreset.match( OUString( "ppt_" ), 0 ) ) if ( rPreset.match("ppt_", 0) )
{ {
sal_Int32 nLast = rPreset.lastIndexOf( '_' ); sal_Int32 nLast = rPreset.lastIndexOf( '_' );
if ( ( nLast != -1 ) && ( ( nLast + 1 ) < rPreset.getLength() ) ) if ( ( nLast != -1 ) && ( ( nLast + 1 ) < rPreset.getLength() ) )
......
...@@ -3255,8 +3255,8 @@ bool HtmlErrorContext::GetString( sal_uLong, OUString& rCtxStr ) ...@@ -3255,8 +3255,8 @@ bool HtmlErrorContext::GetString( sal_uLong, OUString& rCtxStr )
rCtxStr = SdResId( mnResId ).toString(); rCtxStr = SdResId( mnResId ).toString();
rCtxStr = rCtxStr.replaceAll( OUString("$(URL1)"), maURL1 ); rCtxStr = rCtxStr.replaceAll( "$(URL1)", maURL1 );
rCtxStr = rCtxStr.replaceAll( OUString("$(URL2)"), maURL2 ); rCtxStr = rCtxStr.replaceAll( "$(URL2)", maURL2 );
return true; return true;
} }
......
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