summaryrefslogtreecommitdiff
path: root/tools/source/fsys
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-04-21 18:15:57 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-04-22 11:50:56 +0200
commitc5ea059a1def974d798a6218c5cc6cffcb3a00ab (patch)
tree135f96db882b1f8baeeac048fe718aac5d675761 /tools/source/fsys
parent4489418cc7e439708e091e5c7f379dd78f6cfc1b (diff)
no need to create a temporary when appending to OUStringBuffer
Change-Id: If31ac18f08618f805d82c0e49179e3ae9afb124f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114466 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'tools/source/fsys')
-rw-r--r--tools/source/fsys/urlobj.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/source/fsys/urlobj.cxx b/tools/source/fsys/urlobj.cxx
index d52edb1d2f2a..eef92021aa2a 100644
--- a/tools/source/fsys/urlobj.cxx
+++ b/tools/source/fsys/urlobj.cxx
@@ -3526,7 +3526,7 @@ INetURLObject::getAbbreviated(
if (pSuffixEnd != pBegin)
aResult.append("...");
aResult.append(aSegment);
- aResult.append(aTrailer.toString());
+ aResult.append(aTrailer);
aResult.append(aRest);
if (rStringWidth->
queryStringWidth(aResult.makeStringAndClear())
@@ -3566,7 +3566,7 @@ INetURLObject::getAbbreviated(
aResult.append(aSegment);
if (pPrefixBegin != pEnd)
aResult.append("...");
- aResult.append(aTrailer.toString());
+ aResult.append(aTrailer);
aResult.append(aRest);
if (rStringWidth->
queryStringWidth(aResult.makeStringAndClear())
@@ -3589,7 +3589,7 @@ INetURLObject::getAbbreviated(
{
if (pPrefixBegin != pBegin || pSuffixEnd != pEnd)
aBuffer.append("...");
- aBuffer.append(aTrailer.toString());
+ aBuffer.append(aTrailer);
}
}
if (!bSegment)