From cccc19ca93a8c09bf657fa44d9d26ea6f697afe5 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 9 Feb 2021 16:21:30 +0100 Subject: loplugin:stringview (clang-cl) Change-Id: I5c2420d5fb886926540bb3502c130404786f1698 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110641 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- bridges/source/cpp_uno/msvc_shared/except.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bridges') diff --git a/bridges/source/cpp_uno/msvc_shared/except.cxx b/bridges/source/cpp_uno/msvc_shared/except.cxx index c9432af4e67b..4b3d2ae3da0d 100644 --- a/bridges/source/cpp_uno/msvc_shared/except.cxx +++ b/bridges/source/cpp_uno/msvc_shared/except.cxx @@ -59,7 +59,7 @@ static OUString toUNOname(OUString const& rRTTIname) throw() while (nPos > 0) { sal_Int32 n = aStr.lastIndexOf('@', nPos); - aRet.append(aStr.copy(n + 1, nPos - n - 1)); + aRet.append(aStr.subView(n + 1, nPos - n - 1)); if (n >= 0) aRet.append('.'); nPos = n; @@ -75,7 +75,7 @@ static OUString toRTTIname(OUString const& rUNOname) throw() while (nPos > 0) { sal_Int32 n = rUNOname.lastIndexOf('.', nPos); - aRet.append(rUNOname.copy(n + 1, nPos - n - 1)); + aRet.append(rUNOname.subView(n + 1, nPos - n - 1)); aRet.append('@'); nPos = n; } -- cgit