diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-12-13 19:20:25 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-12-13 22:24:54 +0100 |
commit | 44a0daae00fa7990482ef31149fc3ac526fe8e3f (patch) | |
tree | 7a28e2ea7c14386cffdea9c3ebf44ffe1b7cf519 /unoidl | |
parent | 10cf4d5193df2f804176c05a843e801077dbf2ce (diff) |
loplugin:stringview (macOS)
Change-Id: I5a1ffe6d9c140ea7ec7ca22a4e631b3d2c3579ad
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107657
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'unoidl')
-rw-r--r-- | unoidl/source/sourcetreeprovider.cxx | 2 |
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 << ")"); |