diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-06-26 13:54:37 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-06-26 13:55:35 +0200 |
commit | ba257d74588335f5989a2fa553a7441b7c89e600 (patch) | |
tree | 8cd73885c08a1100657a3be3e5d88295b7cf11c8 | |
parent | 786447f12ddedce95217fffeedb5d6296ec388d4 (diff) |
loplugin:stringconstant: handle OUString+=OUString(literal)
Change-Id: If9324bfb77d5f98ce6f968e0aa095f285ef7583f
-rw-r--r-- | writerfilter/source/dmapper/DomainMapperTableHandler.cxx | 6 | ||||
-rw-r--r-- | writerfilter/source/dmapper/DomainMapper_Impl.cxx | 6 |
2 files changed, 4 insertions, 8 deletions
diff --git a/writerfilter/source/dmapper/DomainMapperTableHandler.cxx b/writerfilter/source/dmapper/DomainMapperTableHandler.cxx index 41daf91124de..cab6d926e7f5 100644 --- a/writerfilter/source/dmapper/DomainMapperTableHandler.cxx +++ b/writerfilter/source/dmapper/DomainMapperTableHandler.cxx @@ -844,11 +844,9 @@ CellPropertyValuesSeq_t DomainMapperTableHandler::endTableGetCellProperties(Tabl sal_Int32 nDebugCellProperties = aDebugCellProperties.getLength(); for( sal_Int32 nDebugProperty = 0; nDebugProperty < nDebugCellProperties; ++nDebugProperty) { - const OUString sName = aDebugCellProperties[nDebugProperty].Name; - sNames += sName; - sNames += OUString('-'); + sNames += aDebugCellProperties[nDebugProperty].Name + "-"; } - sNames += OUString('\n'); + sNames += "\n"; } (void)sNames; } diff --git a/writerfilter/source/dmapper/DomainMapper_Impl.cxx b/writerfilter/source/dmapper/DomainMapper_Impl.cxx index 42b57154e4b0..ff6ce1d8b3bf 100644 --- a/writerfilter/source/dmapper/DomainMapper_Impl.cxx +++ b/writerfilter/source/dmapper/DomainMapper_Impl.cxx @@ -2672,8 +2672,7 @@ void FieldContext::AppendCommand(const OUString& rPart) if (bInString) { - sPart += OUString(' '); - sPart += sToken; + sPart += " " + sToken; if (!bInStringNext) { aResult.push_back(sPart); @@ -3720,8 +3719,7 @@ void DomainMapper_Impl::CloseFieldCommand() if (aPartIt == aItEnd) break; - sURL += OUString('#'); - sURL += *aPartIt; + sURL += "#" + *aPartIt; } else if ( *aPartIt == "\\m" || *aPartIt == "\\n" ) { |