[Libreoffice-commits] core.git: vcl/win
Stephan Bergmann
sbergman at redhat.com
Thu Sep 28 16:10:53 UTC 2017
vcl/win/app/salinst.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 8457b50ffd6e41b4925aef17bed2b5a2f3bf56bd
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Thu Sep 28 18:10:26 2017 +0200
loplugin:simplifybool (clang-cl)
Change-Id: I230c37482cfce85534f860ecf3426254be8981ab
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()
More information about the Libreoffice-commits
mailing list