summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2023-11-08 14:15:10 +0100
committerStephan Bergmann <sbergman@redhat.com>2023-11-09 07:36:23 +0100
commitc254acddbc5e45a7e70be3e7b688ed5dddca3c2d (patch)
tree266224d5986e10bb5923221e696642c7c1e11e5b /sal
parenta116e4f1a7b9df4d9f67cdb146508abcfa5a25d5 (diff)
loplugin:unnecessarygetstr (clang-cl)
Change-Id: I79a1902fb1241f95fd4fa963918207154ae2347b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159134 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/w32/file_dirvol.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sal/osl/w32/file_dirvol.cxx b/sal/osl/w32/file_dirvol.cxx
index f0c03d0d0033..84ccd28de8c7 100644
--- a/sal/osl/w32/file_dirvol.cxx
+++ b/sal/osl/w32/file_dirvol.cxx
@@ -1300,7 +1300,7 @@ static bool path_get_parent(OUString& path)
sal_Int32 i = path.lastIndexOf(BACKSLASH);
if (-1 < i)
{
- path = OUString(path.getStr(), i);
+ path = path.copy(0, i);
return true;
}
}