diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-06-21 08:46:18 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-06-21 10:10:36 +0200 |
commit | 7c9d99a5cb2702e478f719bfa8167952293c2793 (patch) | |
tree | 7f17690643a4a96a660035685a20d6224ba45715 /basic | |
parent | 5d30e9e101ae8167c33fe24ca12d8d0685f9f8fb (diff) |
elide some makeStringAndClear() calls
Change-Id: Ie8c04a8c414f32cc0e68fbab1d24a9707f179011
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136201
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/runtime/runtime.cxx | 2 | ||||
-rw-r--r-- | basic/source/sbx/sbxcurr.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/basic/source/runtime/runtime.cxx b/basic/source/runtime/runtime.cxx index f5792fe33dba..93104da1a153 100644 --- a/basic/source/runtime/runtime.cxx +++ b/basic/source/runtime/runtime.cxx @@ -2745,7 +2745,7 @@ void SbiRuntime::StepPRINTF() // print TOS in field } s.append(s1); comphelper::string::padToLength(s, 14, ' '); - pIosys->Write( s.makeStringAndClear() ); + pIosys->Write( s ); Error( pIosys->GetError() ); } diff --git a/basic/source/sbx/sbxcurr.cxx b/basic/source/sbx/sbxcurr.cxx index ad558f2284c1..54b00102dd49 100644 --- a/basic/source/sbx/sbxcurr.cxx +++ b/basic/source/sbx/sbxcurr.cxx @@ -148,7 +148,7 @@ static sal_Int64 ImpStringToCurrency( std::u16string_view rStr ) nFractDigit--; } - sal_Int64 result = sNormalisedNumString.makeStringAndClear().toInt64(); + sal_Int64 result = o3tl::toInt64(sNormalisedNumString); if ( bRoundUp ) ++result; |