summaryrefslogtreecommitdiff
path: root/svl/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-09-30 15:12:52 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-10-01 10:46:15 +0200
commit46c2a3688c9ee7f558f75cbe856c26c4b8849b7e (patch)
tree782b141db099812d21c01b0693db178d66b9c965 /svl/source
parent044a683e6c8f864d46fe8ebe3ef5c757cbea30a6 (diff)
loplugin:stringadd n sfx2..svl
Change-Id: Iaf1bbe37449d4e0cfa817909d56d4bffe1e5a184 Reviewed-on: https://gerrit.libreoffice.org/79893 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svl/source')
-rw-r--r--svl/source/crypto/cryptosign.cxx4
-rw-r--r--svl/source/misc/inettype.cxx3
2 files changed, 2 insertions, 5 deletions
diff --git a/svl/source/crypto/cryptosign.cxx b/svl/source/crypto/cryptosign.cxx
index c85b5d5870d4..4f6d757183ef 100644
--- a/svl/source/crypto/cryptosign.cxx
+++ b/svl/source/crypto/cryptosign.cxx
@@ -370,9 +370,7 @@ OUString PKIStatusToString(int n)
OUString PKIStatusInfoToString(const PKIStatusInfo& rStatusInfo)
{
- OUString result;
-
- result += "{status=";
+ OUString result = "{status=";
if (rStatusInfo.status.len == 1)
result += PKIStatusToString(rStatusInfo.status.data[0]);
else
diff --git a/svl/source/misc/inettype.cxx b/svl/source/misc/inettype.cxx
index 9c620694e36f..ea3675889aaa 100644
--- a/svl/source/misc/inettype.cxx
+++ b/svl/source/misc/inettype.cxx
@@ -262,8 +262,7 @@ INetContentType INetContentTypes::GetContentType(OUString const & rTypeName)
OUString aSubType;
if (parse(rTypeName, aType, aSubType))
{
- aType += "/";
- aType += aSubType;
+ aType += "/" + aSubType;
MediaTypeEntry const * pEntry = seekEntry(aType, aStaticTypeNameMap,
CONTENT_TYPE_LAST + 1);
return pEntry ? pEntry->m_eTypeID : CONTENT_TYPE_UNKNOWN;