diff options
Diffstat (limited to 'sd/source/ui/unoidl')
-rw-r--r-- | sd/source/ui/unoidl/unoobj.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/unoidl/unopage.cxx | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sd/source/ui/unoidl/unoobj.cxx b/sd/source/ui/unoidl/unoobj.cxx index f11c7660b4c6..4062bc85452a 100644 --- a/sd/source/ui/unoidl/unoobj.cxx +++ b/sd/source/ui/unoidl/unoobj.cxx @@ -892,7 +892,7 @@ SdAnimationInfo* SdXShape::GetAnimationInfo( bool bCreate ) const SdrObject* pObj = mpShape->GetSdrObject(); if(pObj) - pInfo = SdDrawDocument::GetShapeUserData(*pObj, bCreate ? true : false); + pInfo = SdDrawDocument::GetShapeUserData(*pObj, bCreate); return pInfo; } diff --git a/sd/source/ui/unoidl/unopage.cxx b/sd/source/ui/unoidl/unopage.cxx index 1228c06f6a94..3aaa96c4b7fb 100644 --- a/sd/source/ui/unoidl/unopage.cxx +++ b/sd/source/ui/unoidl/unopage.cxx @@ -349,7 +349,7 @@ SdGenericDrawPage::SdGenericDrawPage( SdXImpressDocument* _pModel, SdPage* pInPa { mpSdrModel = SvxFmDrawPage::mpModel; if( mpModel ) - mbIsImpressDocument = mpModel->IsImpressDocument() ? true : false; + mbIsImpressDocument = mpModel->IsImpressDocument(); } @@ -373,7 +373,7 @@ SdXImpressDocument* SdGenericDrawPage::GetModel() const uno::Reference< uno::XInterface > xModel( SvxFmDrawPage::mpModel->getUnoModel() ); const_cast< SdGenericDrawPage*>(this)->mpModel = SdXImpressDocument::getImplementation( xModel ); if( mpModel ) - const_cast< SdGenericDrawPage*>(this)->mbIsImpressDocument = mpModel->IsImpressDocument() ? true : false; + const_cast< SdGenericDrawPage*>(this)->mbIsImpressDocument = mpModel->IsImpressDocument(); } else { @@ -712,7 +712,7 @@ void SAL_CALL SdGenericDrawPage::setPropertyValue( const OUString& aPropertyName bool bStopSound = false; if( aValue >>= bStopSound ) { - GetPage()->SetStopSound( bStopSound ? true : false ); + GetPage()->SetStopSound( bStopSound ); break; } } @@ -726,7 +726,7 @@ void SAL_CALL SdGenericDrawPage::setPropertyValue( const OUString& aPropertyName if( ! (aValue >>= bLoop) ) throw lang::IllegalArgumentException(); - GetPage()->SetLoopSound( bLoop ? true : false ); + GetPage()->SetLoopSound( bLoop ); break; } case WID_PAGE_BACKFULL: |