From 7c9d99a5cb2702e478f719bfa8167952293c2793 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 21 Jun 2022 08:46:18 +0200 Subject: elide some makeStringAndClear() calls Change-Id: Ie8c04a8c414f32cc0e68fbab1d24a9707f179011 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136201 Tested-by: Jenkins Reviewed-by: Noel Grandin --- basic/source/runtime/runtime.cxx | 2 +- basic/source/sbx/sbxcurr.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'basic') 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; -- cgit