From c5a0b7af847a71fd50f713934b29305f8ce96c6b Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 3 May 2021 14:09:20 +0200 Subject: loplugin:stringadd improvement for appending numbers I was wrong, the Concat framework already optimised appending numbers by stack-allocating small buffers, so include them in the plugin Change-Id: I922edbdde273c89abfe21d51c5d25dc01c97db25 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115037 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sc/source/ui/dbgui/asciiopt.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'sc/source/ui/dbgui/asciiopt.cxx') diff --git a/sc/source/ui/dbgui/asciiopt.cxx b/sc/source/ui/dbgui/asciiopt.cxx index 270ca6b01069..4d9e8dea6fe8 100644 --- a/sc/source/ui/dbgui/asciiopt.cxx +++ b/sc/source/ui/dbgui/asciiopt.cxx @@ -211,24 +211,24 @@ OUString ScAsciiOptions::WriteToString() const aOutStr.append(ScGlobal::GetCharsetString( eCharSet )); //Token 3: Number of start row. - aOutStr.append(",").append(nStartRow).append(","); + aOutStr.append("," + OUString::number(nStartRow) + ","); //Token 4: Column info. for (size_t nInfo=0; nInfo(mvColFormat[nInfo])); + aOutStr.append(OUString::number(mvColStart[nInfo]) + + "/" + + OUString::number(mvColFormat[nInfo])); } // #i112025# the options string is used in macros and linked sheets, // so new options must be added at the end, to remain compatible - aOutStr.append(",") + aOutStr.append("," + //Token 5: Language - .append(static_cast(static_cast(eLang))).append("," + + OUString::number(static_cast(eLang)) + "," + //Token 6: Import quoted field as text. OUString::boolean( bQuotedFieldAsText ) + "," + //Token 7: Detect special numbers. -- cgit v1.2.3