diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-06 09:36:56 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-06 09:36:56 +0100 |
commit | 801b91432476d791bbb4000b06ace342f583784d (patch) | |
tree | 2ecd7e03a8629cc3fb6afcfadac6cc92b713e930 /scripting/source | |
parent | e53db9461e1cc7ad25ecf5e96021a2f4e70857b1 (diff) |
loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)
Change-Id: If0f1446a25f423b8cbfe6346f7a691f4f2618ad0
Diffstat (limited to 'scripting/source')
-rw-r--r-- | scripting/source/dlgprov/dlgevtatt.cxx | 2 | ||||
-rw-r--r-- | scripting/source/stringresource/stringresource.cxx | 4 | ||||
-rw-r--r-- | scripting/source/vbaevents/eventhelper.cxx | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/scripting/source/dlgprov/dlgevtatt.cxx b/scripting/source/dlgprov/dlgevtatt.cxx index 55666eea9461..5e217573b036 100644 --- a/scripting/source/dlgprov/dlgevtatt.cxx +++ b/scripting/source/dlgprov/dlgevtatt.cxx @@ -135,7 +135,7 @@ namespace dlgprov if ( aScriptEvent.ScriptType == "VBAInterop" && mxListener.is() ) { ScriptEvent aScriptEventCopy( aScriptEvent ); - aScriptEventCopy.ScriptCode = msDialogLibName.concat( OUString( "." ) ).concat( msDialogCodeName ); + aScriptEventCopy.ScriptCode = msDialogLibName.concat( "." ).concat( msDialogCodeName ); try { mxListener->firing( aScriptEventCopy ); diff --git a/scripting/source/stringresource/stringresource.cxx b/scripting/source/stringresource/stringresource.cxx index 11ef0be74de7..9b25c697f0a3 100644 --- a/scripting/source/stringresource/stringresource.cxx +++ b/scripting/source/stringresource/stringresource.cxx @@ -1853,9 +1853,9 @@ OUString StringResourcePersistenceImpl::implGetPathForLocaleItem INetURLObject aInetObj( aLocation ); aInetObj.insertName( aFileName, true, INetURLObject::LAST_SEGMENT, true, INetURLObject::ENCODE_ALL ); if( bDefaultFile ) - aInetObj.setExtension( OUString( "default" ) ); + aInetObj.setExtension( "default" ); else - aInetObj.setExtension( OUString( "properties" ) ); + aInetObj.setExtension( "properties" ); OUString aCompleteFileName = aInetObj.GetMainURL( INetURLObject::NO_DECODE ); return aCompleteFileName; } diff --git a/scripting/source/vbaevents/eventhelper.cxx b/scripting/source/vbaevents/eventhelper.cxx index 0f8f582a3e6b..75e85bed2475 100644 --- a/scripting/source/vbaevents/eventhelper.cxx +++ b/scripting/source/vbaevents/eventhelper.cxx @@ -962,8 +962,8 @@ EventListener::firing_Impl(const ScriptEvent& evt, Any* pRet ) throw(RuntimeExce sScriptCode = sScriptCode.copy( nIndex + 1 ); } OUString sMacroLoc = sProject; - sMacroLoc = sMacroLoc.concat( OUString(".") ); - sMacroLoc = sMacroLoc.concat( sScriptCode ).concat( OUString(".") ); + sMacroLoc = sMacroLoc.concat( "." ); + sMacroLoc = sMacroLoc.concat( sScriptCode ).concat( "." ); OSL_TRACE("sMacroLoc is %s", OUStringToOString( sMacroLoc, RTL_TEXTENCODING_UTF8 ).getStr() ); for ( ; txInfo != txInfo_end; ++txInfo ) |