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 --- svl/source/passwordcontainer/passwordcontainer.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'svl') diff --git a/svl/source/passwordcontainer/passwordcontainer.cxx b/svl/source/passwordcontainer/passwordcontainer.cxx index 7dba92c9866b..596a6e413db3 100644 --- a/svl/source/passwordcontainer/passwordcontainer.cxx +++ b/svl/source/passwordcontainer/passwordcontainer.cxx @@ -68,7 +68,7 @@ static OUString createIndex(const std::vector< OUString >& lines) } else { - aResult.append("_").append( static_cast(*pLine), 16 ); + aResult.append("_" + OUString::number(*pLine, 16) ); } pLine++; -- cgit