summaryrefslogtreecommitdiff
path: root/unoidl
diff options
context:
space:
mode:
Diffstat (limited to 'unoidl')
-rw-r--r--unoidl/source/sourcetreeprovider.cxx2
1 files changed, 1 insertions, 1 deletions
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 << ")");