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

Stephan Bergmann sbergman at redhat.com
Sun May 29 18:56:49 UTC 2016


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

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

    loplugin:simplifybool
    
    Change-Id: I4a07ec3eb9ab3d01c6104346a9bd9654bdcb1efe

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