From 4b9acb48b1ea45c82dbd8df3faa35cabd3bb9b4d Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 17 Mar 2023 19:06:45 +0200 Subject: loplugin:stringadd use more O[U]StringChar Change-Id: I196e4539ad430a39415eff9d7170b33df7228230 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149062 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sax/source/tools/converter.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'sax') diff --git a/sax/source/tools/converter.cxx b/sax/source/tools/converter.cxx index 85f228955367..e9ef4494c5de 100644 --- a/sax/source/tools/converter.cxx +++ b/sax/source/tools/converter.cxx @@ -1492,13 +1492,11 @@ static void convertTime( if (i_rDateTime.Hours < 10) { i_rBuffer.append('0'); } - i_rBuffer.append( static_cast(i_rDateTime.Hours) ) - .append(':'); + i_rBuffer.append( OUString::number(static_cast(i_rDateTime.Hours)) + ":"); if (i_rDateTime.Minutes < 10) { i_rBuffer.append('0'); } - i_rBuffer.append( static_cast(i_rDateTime.Minutes) ) - .append(':'); + i_rBuffer.append( OUString::number(static_cast(i_rDateTime.Minutes) ) + ":"); if (i_rDateTime.Seconds < 10) { i_rBuffer.append('0'); } -- cgit