diff options
author | Noel Grandin <noel@peralex.com> | 2014-03-03 14:06:44 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-03-11 08:18:14 +0200 |
commit | d442a6460f5f1c897358a0e51727c90cd6746ae2 (patch) | |
tree | a3e46551b4664ef057f4ee420690ce8172dd1373 /svx/source/items/algitem.cxx | |
parent | ea2fb5f8f9ea44d7da5f9d34760e470d696f587d (diff) |
svx: sal_Bool->bool
and optimise some methods in bmpmask.hxx - they were unconditionally
returning true, so convert them to void return type.
Change-Id: If8b092a857ab80ead93112b0d627e41d5ccb3cf9
Diffstat (limited to 'svx/source/items/algitem.cxx')
-rw-r--r-- | svx/source/items/algitem.cxx | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/svx/source/items/algitem.cxx b/svx/source/items/algitem.cxx index 74d1a423ca66..8f9f5056d940 100644 --- a/svx/source/items/algitem.cxx +++ b/svx/source/items/algitem.cxx @@ -60,7 +60,7 @@ SvxOrientationItem::SvxOrientationItem( const SvxCellOrientation eOrientation, { } -SvxOrientationItem::SvxOrientationItem( sal_Int32 nRotation, sal_Bool bStacked, const sal_uInt16 nId ) : +SvxOrientationItem::SvxOrientationItem( sal_Int32 nRotation, bool bStacked, const sal_uInt16 nId ) : SfxEnumItem( nId ) { SetFromRotation( nRotation, bStacked ); @@ -161,7 +161,7 @@ sal_uInt16 SvxOrientationItem::GetValueCount() const -sal_Bool SvxOrientationItem::IsStacked() const +bool SvxOrientationItem::IsStacked() const { return static_cast< SvxCellOrientation >( GetValue() ) == SVX_ORIENTATION_STACKED; } @@ -178,7 +178,7 @@ sal_Int32 SvxOrientationItem::GetRotation( sal_Int32 nStdAngle ) const return nAngle; } -void SvxOrientationItem::SetFromRotation( sal_Int32 nRotation, sal_Bool bStacked ) +void SvxOrientationItem::SetFromRotation( sal_Int32 nRotation, bool bStacked ) { if( bStacked ) { @@ -393,34 +393,30 @@ bool SvxMarginItem::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId ) -sal_Bool SvxMarginItem::SetLeftMargin( sal_Int16 nLeft ) +void SvxMarginItem::SetLeftMargin( sal_Int16 nLeft ) { nLeftMargin = nLeft; - return sal_True; } -sal_Bool SvxMarginItem::SetTopMargin( sal_Int16 nTop ) +void SvxMarginItem::SetTopMargin( sal_Int16 nTop ) { nTopMargin = nTop; - return sal_True; } -sal_Bool SvxMarginItem::SetRightMargin( sal_Int16 nRight ) +void SvxMarginItem::SetRightMargin( sal_Int16 nRight ) { nRightMargin = nRight; - return sal_True; } -sal_Bool SvxMarginItem::SetBottomMargin( sal_Int16 nBottom ) +void SvxMarginItem::SetBottomMargin( sal_Int16 nBottom ) { nBottomMargin = nBottom; - return sal_True; } |