From 5200a73627d13e2997f81b53f61e143e77e328ee Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 29 Apr 2022 11:06:33 +0200 Subject: use more string_view in various found by examining uses of OUString::copy() for likely places Change-Id: I6ff20e7b273ad6005410b82719183c1122f8c018 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133617 Tested-by: Jenkins Reviewed-by: Noel Grandin --- connectivity/source/drivers/firebird/PreparedStatement.cxx | 2 +- connectivity/source/parse/sqlbison.y | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'connectivity') diff --git a/connectivity/source/drivers/firebird/PreparedStatement.cxx b/connectivity/source/drivers/firebird/PreparedStatement.cxx index 10f034ce15ce..9cd9157a7d6d 100644 --- a/connectivity/source/drivers/firebird/PreparedStatement.cxx +++ b/connectivity/source/drivers/firebird/PreparedStatement.cxx @@ -783,7 +783,7 @@ void SAL_CALL OPreparedStatement::setObjectWithInfo( sal_Int32 parameterIndex, c sBuffer.append(sValue); if(sValue.indexOf('.') != -1) // there is a dot { - for(sal_Int32 i=sValue.copy(sValue.indexOf('.')+1).getLength(); i