Kaydet (Commit) ecc9fc12 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:simplifybool

Change-Id: I1ad92d1496759007f770b86f9d24e322b3ae194b
üst 891c80e1
...@@ -79,7 +79,7 @@ Any SAL_CALL OComponentEnumeration::nextElement() throw( NoSuchElementExcepti ...@@ -79,7 +79,7 @@ Any SAL_CALL OComponentEnumeration::nextElement() throw( NoSuchElementExcepti
SolarMutexGuard g; SolarMutexGuard g;
// If we have no elements or end of enumeration is arrived ... // If we have no elements or end of enumeration is arrived ...
if ( hasMoreElements() == sal_False ) if ( !hasMoreElements() )
{ {
// .. throw an exception! // .. throw an exception!
throw NoSuchElementException(); throw NoSuchElementException();
......
...@@ -733,10 +733,7 @@ void SAL_CALL Frame::setActiveFrame( const css::uno::Reference< css::frame::XFra ...@@ -733,10 +733,7 @@ void SAL_CALL Frame::setActiveFrame( const css::uno::Reference< css::frame::XFra
// If last active frame was active ... // If last active frame was active ...
// but new one is not it ... // but new one is not it ...
// ... set it as active one. // ... set it as active one.
if ( if ( eActiveState == E_ACTIVE && !xFrame->isActive() )
( eActiveState == E_ACTIVE ) &&
( xFrame->isActive() == sal_False )
)
{ {
xFrame->activate(); xFrame->activate();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment