[Libreoffice-commits] core.git: bridges/source
Stephan Bergmann (via logerrit)
logerrit at kemper.freedesktop.org
Tue Feb 9 18:43:06 UTC 2021
bridges/source/cpp_uno/msvc_shared/except.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit cccc19ca93a8c09bf657fa44d9d26ea6f697afe5
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Tue Feb 9 16:21:30 2021 +0100
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Tue Feb 9 19:42:26 2021 +0100
loplugin:stringview (clang-cl)
Change-Id: I5c2420d5fb886926540bb3502c130404786f1698
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110641
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
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;
}
More information about the Libreoffice-commits
mailing list