[Libreoffice-commits] core.git: desktop/source

Markus Mohrhard markus.mohrhard at googlemail.com
Mon May 30 08:18:14 UTC 2016


 desktop/source/app/crashreport.cxx |    8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

New commits:
commit 4405180546bce4b4237f1a23c0bc5bcc5d7bb3a7
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Mon May 30 05:51:36 2016 +0200

    use the existing url to path function also in the ini file part
    
    Change-Id: Ia92261a63cfe1d51f68f312a27d5ba4b42719c47
    Reviewed-on: https://gerrit.libreoffice.org/25647
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>

diff --git a/desktop/source/app/crashreport.cxx b/desktop/source/app/crashreport.cxx
index b1866f5..c50c2e9 100644
--- a/desktop/source/app/crashreport.cxx
+++ b/desktop/source/app/crashreport.cxx
@@ -68,11 +68,9 @@ OUString getCrashUserProfileDirectory()
     rtl::Bootstrap::expandMacros(url);
     osl::Directory::create(url);
 
-#if defined( UNX ) && !defined MACOSX && !defined IOS && !defined ANDROID
-    return url.copy(7);
-#elif defined WNT
-    return url.copy(8);
-#endif
+    OUString aProfilePath;
+    osl::FileBase::getSystemPathFromFileURL(url, aProfilePath);
+    return aProfilePath;
 }
 
 }


More information about the Libreoffice-commits mailing list