summaryrefslogtreecommitdiff
path: root/sax
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-09-30 15:11:25 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-10-01 10:51:39 +0200
commitb74c4b7c675883e23bea9fd52682ae89d36539f6 (patch)
tree6d2a521470e37ae99a7977aaa129700151c7f43b /sax
parent46c2a3688c9ee7f558f75cbe856c26c4b8849b7e (diff)
loplugin:stringadd in package..sax
Change-Id: I1f8b626ae99bca6e31e7c4aa9c8a1fc016b76e5c Reviewed-on: https://gerrit.libreoffice.org/79890 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sax')
-rw-r--r--sax/source/expatwrap/sax_expat.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/sax/source/expatwrap/sax_expat.cxx b/sax/source/expatwrap/sax_expat.cxx
index 3030b5f001e0..c55cea3f2d04 100644
--- a/sax/source/expatwrap/sax_expat.cxx
+++ b/sax/source/expatwrap/sax_expat.cxx
@@ -614,13 +614,13 @@ OUString getErrorMessage( XML_Error xmlE, const OUString& sSystemId , sal_Int32
Message = "not standalone";
}
- OUString str("[");
- str += sSystemId;
- str += " line ";
- str += OUString::number( nLine );
- str += "]: ";
- str += Message;
- str += "error";
+ OUString str = "[" +
+ sSystemId +
+ " line " +
+ OUString::number( nLine ) +
+ "]: " +
+ Message +
+ "error";
return str;
}