[Libreoffice-commits] core.git: Branch 'libreoffice-5-2' - vcl/source

Stephan Bergmann sbergman at redhat.com
Tue Jun 7 17:18:28 UTC 2016


 vcl/source/app/svmain.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 1faaad816c7af25c692733e9651923ff18d82ac1
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Sun May 29 20:56:20 2016 +0200

    loplugin:simplifybool
    
    Change-Id: I4a07ec3eb9ab3d01c6104346a9bd9654bdcb1efe
    (cherry picked from commit cc6599137796797772b3395c79b35af48e368cce)
    Reviewed-on: https://gerrit.libreoffice.org/26032
    Reviewed-by: Tor Lillqvist <tml at collabora.com>
    Tested-by: Tor Lillqvist <tml at collabora.com>

diff --git a/vcl/source/app/svmain.cxx b/vcl/source/app/svmain.cxx
index 69ab53b..2ebb805 100644
--- a/vcl/source/app/svmain.cxx
+++ b/vcl/source/app/svmain.cxx
@@ -304,7 +304,7 @@ bool InitVCL()
     pSVData->maGDIData.mpScreenFontCache    = new ImplFontCache;
     pSVData->maGDIData.mpGrfConverter       = new GraphicConverter;
 
-    g_bIsLeanException = getenv("LO_LEAN_EXCEPTION") ? true : false;
+    g_bIsLeanException = getenv("LO_LEAN_EXCEPTION") != nullptr;
     // Set exception handler
     pExceptionHandler = osl_addSignalHandler(VCLExceptionSignal_impl, nullptr);
 


More information about the Libreoffice-commits mailing list