diff options
author | Noel Grandin <noel@peralex.com> | 2015-08-13 15:30:58 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-08-14 09:16:06 +0200 |
commit | 0db25f68ab897953d9ca76ae094cc80e0ad11d34 (patch) | |
tree | 49113132a27fe96ebdcab497c9a2c8de796e54c4 /editeng/source | |
parent | e50b5526e24ff552def8f08d393037d2c020dc29 (diff) |
remove default value from SfxPoolItem::PutValue
more useful to make it explicit.
Specifically, otherwise my defaultvalue clang plugin would want to
remove lots of places that contains #define constants which, while
technically the same as the default value, convey semantic
information which is quite useful.
Change-Id: I918ad5b0e73ba279fa1b1489b62d900339ff71eb
Diffstat (limited to 'editeng/source')
-rw-r--r-- | editeng/source/items/frmitems.cxx | 4 | ||||
-rw-r--r-- | editeng/source/items/paraitem.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/editeng/source/items/frmitems.cxx b/editeng/source/items/frmitems.cxx index ba042d9a6ed7..20fee5de0fab 100644 --- a/editeng/source/items/frmitems.cxx +++ b/editeng/source/items/frmitems.cxx @@ -1711,7 +1711,7 @@ table::BorderLine2 SvxBoxItem::SvxLineToLine(const SvxBorderLine* pLine, bool bC return aLine; } -bool SvxBoxItem::QueryValue( uno::Any& rVal, sal_uInt8 nMemberId ) const +bool SvxBoxItem::QueryValue( uno::Any& rVal, sal_uInt8 nMemberId ) const { bool bConvert = 0!=(nMemberId&CONVERT_TWIPS); table::BorderLine2 aRetLine; @@ -2711,7 +2711,7 @@ void SvxBoxInfoItem::ResetFlags() nValidFlags = static_cast<SvxBoxInfoItemValidFlags>(0x7F); // all valid except Disable } -bool SvxBoxInfoItem::QueryValue( uno::Any& rVal, sal_uInt8 nMemberId ) const +bool SvxBoxInfoItem::QueryValue( uno::Any& rVal, sal_uInt8 nMemberId ) const { bool bConvert = 0 != (nMemberId & CONVERT_TWIPS); table::BorderLine2 aRetLine; diff --git a/editeng/source/items/paraitem.cxx b/editeng/source/items/paraitem.cxx index b1fb26cfb459..e750af86c7af 100644 --- a/editeng/source/items/paraitem.cxx +++ b/editeng/source/items/paraitem.cxx @@ -370,7 +370,7 @@ bool SvxAdjustItem::QueryValue( uno::Any& rVal, sal_uInt8 nMemberId ) const return true; } -bool SvxAdjustItem::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId ) +bool SvxAdjustItem::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId ) { nMemberId &= ~CONVERT_TWIPS; switch( nMemberId ) |