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

Thorsten Behrens Thorsten.Behrens at CIB.de
Wed Dec 14 03:38:34 UTC 2016


 desktop/source/app/crashreport.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit d0a0abee5c0c2fe80ead6cad9a893f19ace25a3a
Author: Thorsten Behrens <Thorsten.Behrens at CIB.de>
Date:   Wed Dec 14 04:36:00 2016 +0100

    -Werror,-Wunused-variable
    
    Change-Id: I32e6bad89b7cdcf0b181c0bb3a158b003fcfb767

diff --git a/desktop/source/app/crashreport.cxx b/desktop/source/app/crashreport.cxx
index 9715fde..7a5f6c5 100644
--- a/desktop/source/app/crashreport.cxx
+++ b/desktop/source/app/crashreport.cxx
@@ -103,12 +103,13 @@ OUString getCrashUserProfileDirectory()
 
 void CrashReporter::updateMinidumpLocation()
 {
-    OUString aURL = getCrashUserProfileDirectory();
 #if defined( UNX ) && !defined MACOSX && !defined IOS && !defined ANDROID
+    OUString aURL = getCrashUserProfileDirectory();
     OString aOStringUrl = OUStringToOString(aURL, RTL_TEXTENCODING_UTF8);
     google_breakpad::MinidumpDescriptor descriptor(aOStringUrl.getStr());
     mpExceptionHandler->set_minidump_descriptor(descriptor);
 #elif defined WNT
+    OUString aURL = getCrashUserProfileDirectory();
     mpExceptionHandler->set_dump_path(aURL.getStr());
 #endif
 }


More information about the Libreoffice-commits mailing list