From 8457b50ffd6e41b4925aef17bed2b5a2f3bf56bd Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 28 Sep 2017 18:10:26 +0200 Subject: loplugin:simplifybool (clang-cl) Change-Id: I230c37482cfce85534f860ecf3426254be8981ab --- vcl/win/app/salinst.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vcl') diff --git a/vcl/win/app/salinst.cxx b/vcl/win/app/salinst.cxx index 487cf7fb09d2..bc0c908d9af2 100644 --- a/vcl/win/app/salinst.cxx +++ b/vcl/win/app/salinst.cxx @@ -205,7 +205,7 @@ void ImplSalYieldMutexAcquireWithWait( sal_uInt32 nCount ) bool ImplSalYieldMutexTryToAcquire() { WinSalInstance* pInst = GetSalData()->mpInstance; - return pInst ? pInst->mpSalYieldMutex->tryToAcquire() : false; + return pInst && pInst->mpSalYieldMutex->tryToAcquire(); } void ImplSalYieldMutexRelease() -- cgit