summaryrefslogtreecommitdiff
path: root/svtools/source/misc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-10-01 18:22:21 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-10-02 08:01:19 +0200
commitfe3d9961e32fd7230e21716793adaddffdf2463e (patch)
tree05511ede00f3b15842b4f1c0f3d9e90efc79ff92 /svtools/source/misc
parent5da08d7b14b03459070228bad1b42dc5d1746b9f (diff)
loplugin:stringadd in svtools
Change-Id: Ic085990173051f421d1ffc7914574cb63a7ae21d Reviewed-on: https://gerrit.libreoffice.org/79982 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools/source/misc')
-rw-r--r--svtools/source/misc/imagemgr.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/svtools/source/misc/imagemgr.cxx b/svtools/source/misc/imagemgr.cxx
index 03132e258926..bd16300c5ced 100644
--- a/svtools/source/misc/imagemgr.cxx
+++ b/svtools/source/misc/imagemgr.cxx
@@ -734,8 +734,7 @@ OUString SvFileInformationManager::GetDescription_Impl( const INetURLObject& rOb
{
bShowExt = false;
sExtension = sExtension.toAsciiUpperCase();
- sDescription = sExtension;
- sDescription += "-";
+ sDescription = sExtension + "-";
}
sDescription += SvtResId(pResId);
}
@@ -744,9 +743,7 @@ OUString SvFileInformationManager::GetDescription_Impl( const INetURLObject& rOb
if ( bShowExt )
{
- sDescription += " (";
- sDescription += sExtension;
- sDescription += ")";
+ sDescription += " (" + sExtension + ")";
}
return sDescription;