summaryrefslogtreecommitdiff
path: root/xmloff/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-03-13 12:51:29 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-03-13 16:47:32 +0000
commit13d3ae64dbf2ac4bda8e831c1da890b09024a8bb (patch)
tree5097d7b6d54186490452a62adc3e84634a0d8d4e /xmloff/source
parent25ae332bbafd0cb416a6a5c0db467e501661c679 (diff)
make more use of OUStringBuffer::append(OUStringConcat)
where we can avoid constructing temporary OUStrings Change-Id: I0eacd68a8d1b450894c2ea769055f16886b78ad0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148780 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/source')
-rw-r--r--xmloff/source/style/xmlnumfi.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/xmloff/source/style/xmlnumfi.cxx b/xmloff/source/style/xmlnumfi.cxx
index 7cb1b7d679ef..1b566ed8d93c 100644
--- a/xmloff/source/style/xmlnumfi.cxx
+++ b/xmloff/source/style/xmlnumfi.cxx
@@ -1821,9 +1821,7 @@ void SvXMLNumFormatContext::AddNumber( const SvXMLNumberInfo& rInfo )
// #107805# always quote embedded strings - even space would otherwise
// be recognized as thousands separator in French.
- aNumStr.insert(nInsertPos, '"');
- aNumStr.insert(nInsertPos, it.second);
- aNumStr.insert(nInsertPos, '"');
+ aNumStr.insert(nInsertPos, OUString::Concat("\"") + it.second + "\"");
}
}
}