sal/osl/w32/file_dirvol.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit c254acddbc5e45a7e70be3e7b688ed5dddca3c2d
Author:     Stephan Bergmann <sberg...@redhat.com>
AuthorDate: Wed Nov 8 14:15:10 2023 +0100
Commit:     Stephan Bergmann <sberg...@redhat.com>
CommitDate: Thu Nov 9 07:36:23 2023 +0100

    loplugin:unnecessarygetstr (clang-cl)
    
    Change-Id: I79a1902fb1241f95fd4fa963918207154ae2347b
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159134
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sberg...@redhat.com>

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;
         }
     }

Reply via email to