summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2016-02-15 22:45:33 +0200
committerTor Lillqvist <tml@collabora.com>2016-02-15 22:45:33 +0200
commitb07fd644bab69fb19c58e6dae394e963a463d2e1 (patch)
treecc72bc2b6c2148b265b42a6b7c5e0e090bc06714 /vcl/source
parentbc8dfe47596f28ff43ec01af4487a2abe349caee (diff)
loplugin:simplifybool
conditional expression of the form '!A ? B : true' (with A of type 'bool' and B of type 'bool') can literally be simplified as 'A || B'. Change-Id: I46bee836425bf1c76def23e30dca9ddd9e791b42
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/app/svmain.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/app/svmain.cxx b/vcl/source/app/svmain.cxx
index 2eb36ef4cf44..0f329e6045fe 100644
--- a/vcl/source/app/svmain.cxx
+++ b/vcl/source/app/svmain.cxx
@@ -158,7 +158,7 @@ int ImplSVMain()
int nReturn = EXIT_FAILURE;
- bool bInit = (!isInitVCL() ? InitVCL() : true);
+ bool bInit = isInitVCL() || InitVCL();
if( bInit )
{