summaryrefslogtreecommitdiff
path: root/package/qa/cppunit/test_package.cxx
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 /package/qa/cppunit/test_package.cxx
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 'package/qa/cppunit/test_package.cxx')
-rw-r--r--package/qa/cppunit/test_package.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/package/qa/cppunit/test_package.cxx b/package/qa/cppunit/test_package.cxx
index ec65d7a88351..2353e7b3de07 100644
--- a/package/qa/cppunit/test_package.cxx
+++ b/package/qa/cppunit/test_package.cxx
@@ -152,8 +152,7 @@ namespace
for (char c = 'a'; c <= 'z'; ++c, ++itBuf)
{
- OUString aName(c);
- aName += ".txt";
+ OUString aName = OUString(c) + ".txt";
uno::Reference<io::XInputStream> xStrm;
mxNA->getByName(aName) >>= xStrm;
@@ -175,8 +174,7 @@ namespace
for (char c = 'a'; c <= 'z'; ++c, ++itBuf)
{
- OUString aName(c);
- aName += ".txt";
+ OUString aName = OUString(c) + ".txt";
uno::Reference<io::XInputStream> xStrm;
//Size of each stream is 1mb (>10000) => XBufferedThreadedStream