diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-03-17 10:14:55 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-03-17 09:41:13 +0000 |
commit | f5bfc127ddabf5f94d0cd1c1e4e6727b4dd3f73a (patch) | |
tree | 15eb958e9aac29848face84df98d29a79f51bf5f /sax | |
parent | 657743ec52c5706a88666afe554752ce0d160361 (diff) |
elide some temporary OUStrings
where we are calling
append(OUString::createFromAscii(
and we can rather call
appendAscii
Change-Id: I2366b518fe6d8d2484b00bb831cb79fb49bc0293
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149043
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sax')
-rw-r--r-- | sax/source/tools/converter.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sax/source/tools/converter.cxx b/sax/source/tools/converter.cxx index ef043abd4d7d..85f228955367 100644 --- a/sax/source/tools/converter.cxx +++ b/sax/source/tools/converter.cxx @@ -1129,7 +1129,7 @@ void Converter::convertDuration(OUStringBuffer& rBuffer, ostr.fill('0'); ostr.width(9); ostr << rDuration.NanoSeconds; - rBuffer.append(OUString::createFromAscii(ostr.str().c_str())); + rBuffer.appendAscii(ostr.str().c_str()); } rBuffer.append('S'); } @@ -1510,7 +1510,7 @@ static void convertTime( ostr.fill('0'); ostr.width(9); ostr << i_rDateTime.NanoSeconds; - i_rBuffer.append(OUString::createFromAscii(ostr.str().c_str())); + i_rBuffer.appendAscii(ostr.str().c_str()); } } |