summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-07-16 13:51:12 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-07-16 14:00:18 +0200
commitecc9fc12f1fe60b3d6abf1b14f8b7a078e1c1151 (patch)
tree847d32cf9ace5147213ab31fe16f4e14c3eaddf0 /framework
parent891c80e1723c4aac2457d5a76b1b0e042e78b70b (diff)
loplugin:simplifybool
Change-Id: I1ad92d1496759007f770b86f9d24e322b3ae194b
Diffstat (limited to 'framework')
-rw-r--r--framework/source/helper/ocomponentenumeration.cxx2
-rw-r--r--framework/source/services/frame.cxx5
2 files changed, 2 insertions, 5 deletions
diff --git a/framework/source/helper/ocomponentenumeration.cxx b/framework/source/helper/ocomponentenumeration.cxx
index 260c96330bb6..dce0ead90d00 100644
--- a/framework/source/helper/ocomponentenumeration.cxx
+++ b/framework/source/helper/ocomponentenumeration.cxx
@@ -79,7 +79,7 @@ Any SAL_CALL OComponentEnumeration::nextElement() throw( NoSuchElementExcepti
SolarMutexGuard g;
// If we have no elements or end of enumeration is arrived ...
- if ( hasMoreElements() == sal_False )
+ if ( !hasMoreElements() )
{
// .. throw an exception!
throw NoSuchElementException();
diff --git a/framework/source/services/frame.cxx b/framework/source/services/frame.cxx
index a3f7bd700584..92c4ff3d562e 100644
--- a/framework/source/services/frame.cxx
+++ b/framework/source/services/frame.cxx
@@ -733,10 +733,7 @@ void SAL_CALL Frame::setActiveFrame( const css::uno::Reference< css::frame::XFra
// If last active frame was active ...
// but new one is not it ...
// ... set it as active one.
- if (
- ( eActiveState == E_ACTIVE ) &&
- ( xFrame->isActive() == sal_False )
- )
+ if ( eActiveState == E_ACTIVE && !xFrame->isActive() )
{
xFrame->activate();
}