diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2021-02-09 16:21:30 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2021-02-09 19:42:26 +0100 |
commit | cccc19ca93a8c09bf657fa44d9d26ea6f697afe5 (patch) | |
tree | 721d638750deb1b6bd1152becd9165c2999aeebd | |
parent | 8f22ce5ea3e62a4837773f6958b8ce7ac96f811a (diff) |
loplugin:stringview (clang-cl)
Change-Id: I5c2420d5fb886926540bb3502c130404786f1698
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110641
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
-rw-r--r-- | bridges/source/cpp_uno/msvc_shared/except.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |