diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-04-15 12:25:12 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-04-19 18:31:10 +0200 |
commit | ab699bfdb3375f7142a50cc35322e2924c9e5945 (patch) | |
tree | 8f935378a1ee272f4316a50f902e214d50ce8cc6 /xmloff | |
parent | f393785a146433cccd5bbecf1e49b5f1485ec5a7 (diff) |
new loplugin:stringviewvar looks for OUString vars that can be
... that can be string_view
Change-Id: I0ddf66725e08b58e866a764f57200dd188b9f639
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133066
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/chart/SchXMLTools.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xmloff/source/chart/SchXMLTools.cxx b/xmloff/source/chart/SchXMLTools.cxx index 828d550e9f56..2e90a3e37f5e 100644 --- a/xmloff/source/chart/SchXMLTools.cxx +++ b/xmloff/source/chart/SchXMLTools.cxx @@ -48,6 +48,7 @@ #include <comphelper/processfactory.hxx> #include <tools/diagnose_ex.h> #include <sal/log.hxx> +#include <o3tl/string_view.hxx> #include <algorithm> #include <map> @@ -94,8 +95,8 @@ sal_Int32 lcl_getBuildIDFromGenerator( std::u16string_view rGenerator ) size_t nBegin = rGenerator.find( sBuildCompare ); if( nBegin != std::u16string_view::npos ) { - OUString sBuildId( rGenerator.substr( nBegin + sBuildCompare.getLength() ) ); - nBuildId = sBuildId.toInt32(); + std::u16string_view sBuildId = rGenerator.substr( nBegin + sBuildCompare.getLength() ); + nBuildId = o3tl::toInt32(sBuildId); } return nBuildId; } |