diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-01-27 10:44:30 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-01-27 10:47:32 +0100 |
commit | 65191cda819ee8f4d14f6cdf12568c35e46b5c66 (patch) | |
tree | 47d394c5e3b93ab7eb98f286bab1281175671325 /framework | |
parent | 5de65dc2d6887a9c7a5b4faa23caa53f8c05c2d0 (diff) |
bool improvements
Change-Id: I757e19313576d2c3d13af1cb720f182f0de91613
Diffstat (limited to 'framework')
-rw-r--r-- | framework/inc/threadhelp/gate.hxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/framework/inc/threadhelp/gate.hxx b/framework/inc/threadhelp/gate.hxx index 643e68adb07d..1960909a997e 100644 --- a/framework/inc/threadhelp/gate.hxx +++ b/framework/inc/threadhelp/gate.hxx @@ -107,7 +107,7 @@ class Gate : public IGate m_aPassage.set(); // Check if operation was successful! // Check returns false if condition isn't set => m_bClosed will be true then => we must return false; opening failed - m_bClosed = ( m_aPassage.check() == sal_False ); + m_bClosed = !m_aPassage.check(); } /*-****************************************************************************************************//** @@ -130,7 +130,7 @@ class Gate : public IGate m_aPassage.reset(); // Check if operation was successful! // Check returns false if condition was reseted => m_bClosed will be true then => we can return true; closing ok - m_bClosed = ( m_aPassage.check() == sal_False ); + m_bClosed = !m_aPassage.check(); } /*-****************************************************************************************************//** @@ -156,7 +156,7 @@ class Gate : public IGate m_aPassage.set(); // Check state of condition. // If condition is set check() returns true => m_bGapOpen will be true too => we can use it as return value. - m_bGapOpen = ( m_aPassage.check() == sal_True ); + m_bGapOpen = m_aPassage.check(); } /*-****************************************************************************************************//** |