diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-09-17 09:20:21 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-09-17 13:23:19 +0200 |
commit | 1e202ec8aa177d427c5173c5290e09aec1e5c720 (patch) | |
tree | 46e06b6f4ee90f294ee95a35c29bbe37c8d89941 /i18nutil/source/utility | |
parent | 087995401447a4d452e3daf147c02fb66c7b05c1 (diff) |
avoid some copying
Change-Id: I2e8da57f0fe048c3cf7288bf688f9411e62a1ffc
Reviewed-on: https://gerrit.libreoffice.org/79035
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'i18nutil/source/utility')
-rw-r--r-- | i18nutil/source/utility/unicode.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/i18nutil/source/utility/unicode.cxx b/i18nutil/source/utility/unicode.cxx index 7e0c425368be..e8a6aadb16b9 100644 --- a/i18nutil/source/utility/unicode.cxx +++ b/i18nutil/source/utility/unicode.cxx @@ -965,7 +965,7 @@ OUString ToggleUnicodeCodepoint::StringToReplace() if( nUPlus != -1 ) { maInput.remove(0, nUPlus); - sIn = maInput.copy(2).toString(); + sIn = maInput.copy(2).makeStringAndClear(); nUPlus = sIn.indexOf("U+"); } else |