[Libreoffice-commits] core.git: unoidl/source

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Sun Dec 13 21:25:40 UTC 2020


 unoidl/source/sourcetreeprovider.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 44a0daae00fa7990482ef31149fc3ac526fe8e3f
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Sun Dec 13 19:20:25 2020 +0100
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Sun Dec 13 22:24:54 2020 +0100

    loplugin:stringview (macOS)
    
    Change-Id: I5a1ffe6d9c140ea7ec7ca22a4e631b3d2c3579ad
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107657
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/unoidl/source/sourcetreeprovider.cxx b/unoidl/source/sourcetreeprovider.cxx
index 7ec67db22062..498ab33b03bc 100644
--- a/unoidl/source/sourcetreeprovider.cxx
+++ b/unoidl/source/sourcetreeprovider.cxx
@@ -49,7 +49,7 @@ OUString getFileName(OUString const & uri, osl::FileStatus const & status) {
         return status.getFileName();
     }
     OString dir(OUStringToOString(path, osl_getThreadTextEncoding()));
-    OString name(OUStringToOString(uri.copy(i), osl_getThreadTextEncoding()));
+    OString name(OUStringToOString(uri.subView(i), osl_getThreadTextEncoding()));
     DIR * d = opendir(dir.getStr());
     if (d == nullptr) {
         SAL_WARN("unoidl", "cannot opendir(" << dir << ")");


More information about the Libreoffice-commits mailing list