diff options
author | Noel Grandin <noel@peralex.com> | 2015-12-08 14:17:07 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2016-01-22 12:14:56 +0000 |
commit | 370294f6d1471b89a30c1f8b917cde3830d66b2f (patch) | |
tree | 6fda9ec3afbf4d048d9fa0f4de5b7f4da4a616b5 /editeng | |
parent | cd9cafe54c87768ddde007228dc1d3f3b7e68f92 (diff) |
new loplugin sfxpoolitem
generates a warning about subclasses that add members but do not
override operator==()
Change-Id: If6df1a2cbd115f17bcca22f9b7995181dcf55c03
Reviewed-on: https://gerrit.libreoffice.org/20468
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/items/paraitem.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/editeng/source/items/paraitem.cxx b/editeng/source/items/paraitem.cxx index 061bf02c9eba..0b43f543bfde 100644 --- a/editeng/source/items/paraitem.cxx +++ b/editeng/source/items/paraitem.cxx @@ -1273,6 +1273,14 @@ bool SvxPageModelItem::PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId return bRet; } +bool SvxPageModelItem::operator==( const SfxPoolItem& rAttr ) const +{ + DBG_ASSERT( SfxPoolItem::operator==(rAttr), "unequal types" ); + + return SfxStringItem::operator==(rAttr) && + bAuto == static_cast<const SvxPageModelItem&>( rAttr ).bAuto; +} + bool SvxPageModelItem::GetPresentation ( SfxItemPresentation ePres, |