framework/source/accelerators/storageholder.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 8d5e97a7e54cde43d8f8f73d5729ab5e5bad1c34
Author: Stephan Bergmann <sberg...@redhat.com>
Date:   Thu Jun 25 17:02:50 2015 +0200

    += does not make any sense here
    
    ...although it was like that ever since its inception in
    4718eab5490fd470945890d90427f87894952d5f "INTEGRATION: CWS keyconfig01," but
    perhaps impl_st_normPath never actually gets called with a path with leading
    slash, anyway.
    
    Change-Id: Ia3cf4f4020b3a9ca7152777bfa0378c28948fb8f

diff --git a/framework/source/accelerators/storageholder.cxx 
b/framework/source/accelerators/storageholder.cxx
index e22d9e6..e315ef0 100644
--- a/framework/source/accelerators/storageholder.cxx
+++ b/framework/source/accelerators/storageholder.cxx
@@ -494,8 +494,7 @@ OUString StorageHolder::impl_st_normPath(const OUString& 
sPath)
     OUString sNormedPath = sPath;
 
     // "/bla" => "bla" && "/" => "" (!)
-    if (sNormedPath.startsWith(PATH_SEPARATOR_ASCII))
-        sNormedPath += sNormedPath.copy(1);
+    sNormedPath.startsWith(PATH_SEPARATOR_ASCII, &sNormedPath);
 
     // "/" => "" || "" => "" ?
     if (sNormedPath.isEmpty())
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to