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

loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)

Change-Id: If0f1446a25f423b8cbfe6346f7a691f4f2618ad0
üst e53db946
......@@ -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 );
......
......@@ -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;
}
......
......@@ -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 )
......
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