summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-06-26 13:54:33 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-06-26 13:55:35 +0200
commit786447f12ddedce95217fffeedb5d6296ec388d4 (patch)
treeba6b758847bc8c91dd6736e65e5a0589d97c42be /vcl
parent7f8500191f24571d70fe6a8b8273102d65fd86e1 (diff)
loplugin:stringconstant: handle OUString+=OUString(literal)
Change-Id: I6c82e5071038990489e85ac27758867205ba476a
Diffstat (limited to 'vcl')
-rw-r--r--vcl/generic/print/genpspgraphics.cxx2
-rw-r--r--vcl/source/gdi/configsettings.cxx10
-rw-r--r--vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx2
3 files changed, 4 insertions, 10 deletions
diff --git a/vcl/generic/print/genpspgraphics.cxx b/vcl/generic/print/genpspgraphics.cxx
index dfaca3dc3546..5b5971f26d3a 100644
--- a/vcl/generic/print/genpspgraphics.cxx
+++ b/vcl/generic/print/genpspgraphics.cxx
@@ -1138,7 +1138,7 @@ ImplDevFontAttributes GenPspGraphics::Info2DevFontAttributes( const psp::FastPri
for(; it != rInfo.m_aAliases.end(); ++it )
{
if( bHasMapNames )
- aDFA.maMapNames += OUString(';');
+ aDFA.maMapNames += ";";
aDFA.maMapNames += *it;
bHasMapNames = true;
}
diff --git a/vcl/source/gdi/configsettings.cxx b/vcl/source/gdi/configsettings.cxx
index 6ec9e3b4660b..f8d72e901c41 100644
--- a/vcl/source/gdi/configsettings.cxx
+++ b/vcl/source/gdi/configsettings.cxx
@@ -70,10 +70,7 @@ void SettingsConfigItem::ImplCommit()
SmallOUStrMap::const_iterator it;
for( it = group->second.begin(); it != group->second.end(); ++it )
{
- OUString aName( aKeyName );
- aName += OUString('/');
- aName += it->first;
- pValues[nIndex].Name = aName;
+ pValues[nIndex].Name = aKeyName + "/" + it->first;
pValues[nIndex].Handle = 0;
pValues[nIndex].Value <<= it->second;
pValues[nIndex].State = PropertyState_DIRECT_VALUE;
@@ -108,10 +105,7 @@ void SettingsConfigItem::getValues()
OUString* pTo = aSettingsKeys.getArray();
for( int m = 0; m < aKeys.getLength(); m++ )
{
- OUString aName( aKeyName );
- aName += OUString('/');
- aName += pFrom[m];
- pTo[m] = aName;
+ pTo[m] = aKeyName + "/" + pFrom[m];
}
Sequence< Any > aValues( GetProperties( aSettingsKeys ) );
const Any* pValue = aValues.getConstArray();
diff --git a/vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx b/vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx
index 6872c6698859..6512434b5bb6 100644
--- a/vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx
+++ b/vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx
@@ -1906,7 +1906,7 @@ void SalGtkFilePicker::SetFilters()
for (std::set<OUString>::const_iterator aIter = aAllFormats.begin(); aIter != aEnd; ++aIter)
{
if (!sAllFilter.isEmpty())
- sAllFilter += OUString(';');
+ sAllFilter += ";";
sAllFilter += *aIter;
}
sPseudoFilter = getResString(FILE_PICKER_ALLFORMATS);