loplugin:simplifybool

Change-Id: Id87047cb49eabe0c5ef3463f437e47f0eeeae990
This commit is contained in:
Stephan Bergmann
2015-07-16 14:00:20 +02:00
parent 35279a7e2d
commit b36e8678bc
9 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -1350,7 +1350,7 @@ void createVisibilityOnOffNode(Reference< XTimeContainer >& rxParentContainer, S
xAnimate->setAttributeName(OUString("Visibility"));
// set attribute value
aAny <<= bVisible ? sal_True : sal_False;
aAny <<= bVisible;
xAnimate->setTo(aAny);
// ad set node to par node
@@ -65,7 +65,7 @@ AnnotationEnumeration::AnnotationEnumeration( const AnnotationVector& rAnnotatio
// ::com::sun::star::office::XAnnotationEnumeration:
sal_Bool SAL_CALL AnnotationEnumeration::hasMoreElements() throw (css::uno::RuntimeException, std::exception)
{
return maIter != maAnnotations.end() ? sal_True : sal_False;
return maIter != maAnnotations.end();
}
css::uno::Reference< css::office::XAnnotation > SAL_CALL AnnotationEnumeration::nextElement() throw (css::uno::RuntimeException, css::container::NoSuchElementException, std::exception)
+1 -1
View File
@@ -271,7 +271,7 @@ sal_Bool SAL_CALL SdStyleFamily::hasByName( const OUString& aName ) throw(Runtim
{
PresStyleMap& rStyleSheets = mpImpl->getStyleSheets();
PresStyleMap::iterator iter( rStyleSheets.find(aName) );
return ( iter != rStyleSheets.end() ) ? sal_True : sal_False;
return iter != rStyleSheets.end();
}
else
{
+2 -2
View File
@@ -895,14 +895,14 @@ sal_Bool SAL_CALL SdStyleSheet::isUserDefined() throw(RuntimeException, std::exc
{
SolarMutexGuard aGuard;
throwIfDisposed();
return IsUserDefined() ? sal_True : sal_False;
return IsUserDefined();
}
sal_Bool SAL_CALL SdStyleSheet::isInUse() throw(RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
throwIfDisposed();
return IsUsed() ? sal_True : sal_False;
return IsUsed();
}
OUString SAL_CALL SdStyleSheet::getParentStyle() throw(RuntimeException, std::exception)
+2 -2
View File
@@ -854,11 +854,11 @@ void SdPublishingDlg::GetParameterSequence( Sequence< PropertyValue >& rParams )
aProps.push_back( aValue );
aValue.Name = "SlideSound";
aValue.Value <<= pPage3_SldSound->IsChecked() ? sal_True : sal_False;
aValue.Value <<= pPage3_SldSound->IsChecked();
aProps.push_back( aValue );
aValue.Name = "HiddenSlides";
aValue.Value <<= pPage3_HiddenSlides->IsChecked() ? sal_True : sal_False;
aValue.Value <<= pPage3_HiddenSlides->IsChecked();
aProps.push_back( aValue );
// Page 4
+2 -2
View File
@@ -999,7 +999,7 @@ bool AnimationImporter::convertAnimationValue( MS_AttributeNames eAttribute, Any
OUString aString;
if( rValue >>= aString )
{
rValue <<= aString == "visible" ? sal_True : sal_False;
rValue <<= aString == "visible";
bRet = true;
}
}
@@ -1687,7 +1687,7 @@ void AnimationImporter::importAnimateAttributeTargetContainer( const Atom* pAtom
if( nBits & 2 )
{
xAnimate->setAccumulate( (nAccumulate == 0) ? sal_True : sal_False );
xAnimate->setAccumulate( nAccumulate == 0 );
}
}
}
@@ -1075,7 +1075,7 @@ STLPropertySet* CustomAnimationPane::createSelectionSet()
}
addValue( pSet, nHandleHasAfterEffect, makeAny( pEffect->hasAfterEffect() ) );
addValue( pSet, nHandleAfterEffectOnNextEffect, makeAny( pEffect->IsAfterEffectOnNext() ? sal_True : sal_False ) );
addValue( pSet, nHandleAfterEffectOnNextEffect, makeAny( pEffect->IsAfterEffectOnNext() ) );
addValue( pSet, nHandleDimColor, pEffect->getDimColor() );
addValue( pSet, nHandleIterateType, makeAny( pEffect->getIterateType() ) );
+1 -1
View File
@@ -2767,7 +2767,7 @@ void SlideshowImpl::setAutoSaveState( bool bOn)
Sequence< beans::PropertyValue > aArgs(1);
aArgs[0].Name = "AutoSaveState";
aArgs[0].Value <<= bOn ? sal_True : sal_False;
aArgs[0].Value <<= bOn;
uno::Reference< frame::XDispatch > xAutoSave = frame::theAutoRecovery::get(xContext);
xAutoSave->dispatch(aURL, aArgs);
+1 -1
View File
@@ -2664,7 +2664,7 @@ Type SAL_CALL SdNavigationOrderAccess::getElementType( ) throw (RuntimeExceptio
sal_Bool SAL_CALL SdNavigationOrderAccess::hasElements( ) throw (RuntimeException, std::exception)
{
return maShapes.empty() ? sal_False : sal_True;
return !maShapes.empty();
}
Any SdGenericDrawPage::getNavigationOrder()