[Libreoffice-commits] core.git: framework/source
Stephan Bergmann
sbergman at redhat.com
Thu Jun 25 08:05:11 PDT 2015
framework/source/accelerators/storageholder.cxx | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
New commits:
commit 8d5e97a7e54cde43d8f8f73d5729ab5e5bad1c34
Author: Stephan Bergmann <sbergman at 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())
More information about the Libreoffice-commits
mailing list