From db9912d824c1d621fdc409b9cdd6c79caefe1327 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 30 Mar 2023 10:39:24 +0200 Subject: loplugin:stringadd in ucbhelper..uui when applying my upcoming patch to also consider O[U]StringBuffer Change-Id: I49549347c1c041cc9ce103aed1fe1cc3bc1a780f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149751 Tested-by: Jenkins Reviewed-by: Noel Grandin --- unoxml/source/xpath/xpathapi.cxx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'unoxml') diff --git a/unoxml/source/xpath/xpathapi.cxx b/unoxml/source/xpath/xpathapi.cxx index d4c4f0a469cc..17b28027534c 100644 --- a/unoxml/source/xpath/xpathapi.cxx +++ b/unoxml/source/xpath/xpathapi.cxx @@ -226,15 +226,11 @@ namespace XPath } int line = pError->line; if (line) { - buf.append("Line: "); - buf.append(static_cast(line)); - buf.append("\n"); + buf.append("Line: " + OUString::number(static_cast(line)) + "\n"); } int column = pError->int2; if (column) { - buf.append("Column: "); - buf.append(static_cast(column)); - buf.append("\n"); + buf.append("Column: " + OUString::number(static_cast(column)) + "\n"); } } else { buf.append("no error argument!"); -- cgit