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

loplugin:stringconstant: handle OUString+=OUString(literal)

Change-Id: If9324bfb77d5f98ce6f968e0aa095f285ef7583f
üst 786447f1
...@@ -844,11 +844,9 @@ CellPropertyValuesSeq_t DomainMapperTableHandler::endTableGetCellProperties(Tabl ...@@ -844,11 +844,9 @@ CellPropertyValuesSeq_t DomainMapperTableHandler::endTableGetCellProperties(Tabl
sal_Int32 nDebugCellProperties = aDebugCellProperties.getLength(); sal_Int32 nDebugCellProperties = aDebugCellProperties.getLength();
for( sal_Int32 nDebugProperty = 0; nDebugProperty < nDebugCellProperties; ++nDebugProperty) for( sal_Int32 nDebugProperty = 0; nDebugProperty < nDebugCellProperties; ++nDebugProperty)
{ {
const OUString sName = aDebugCellProperties[nDebugProperty].Name; sNames += aDebugCellProperties[nDebugProperty].Name + "-";
sNames += sName;
sNames += OUString('-');
} }
sNames += OUString('\n'); sNames += "\n";
} }
(void)sNames; (void)sNames;
} }
......
...@@ -2672,8 +2672,7 @@ void FieldContext::AppendCommand(const OUString& rPart) ...@@ -2672,8 +2672,7 @@ void FieldContext::AppendCommand(const OUString& rPart)
if (bInString) if (bInString)
{ {
sPart += OUString(' '); sPart += " " + sToken;
sPart += sToken;
if (!bInStringNext) if (!bInStringNext)
{ {
aResult.push_back(sPart); aResult.push_back(sPart);
...@@ -3720,8 +3719,7 @@ void DomainMapper_Impl::CloseFieldCommand() ...@@ -3720,8 +3719,7 @@ void DomainMapper_Impl::CloseFieldCommand()
if (aPartIt == aItEnd) if (aPartIt == aItEnd)
break; break;
sURL += OUString('#'); sURL += "#" + *aPartIt;
sURL += *aPartIt;
} }
else if ( *aPartIt == "\\m" || *aPartIt == "\\n" ) else if ( *aPartIt == "\\m" || *aPartIt == "\\n" )
{ {
......
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