unoidl/source/sourcetreeprovider.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 44a0daae00fa7990482ef31149fc3ac526fe8e3f Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Sun Dec 13 19:20:25 2020 +0100 Commit: Stephan Bergmann <sberg...@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 <sberg...@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 << ")"); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits