summaryrefslogtreecommitdiffstats
path: root/editeng/source/items/paraitem.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-12-08 14:17:07 +0200
committerMichael Stahl <mstahl@redhat.com>2016-01-22 12:14:56 +0000
commit370294f6d1471b89a30c1f8b917cde3830d66b2f (patch)
tree6fda9ec3afbf4d048d9fa0f4de5b7f4da4a616b5 /editeng/source/items/paraitem.cxx
parentcid#1326191 is a false positive (diff)
downloadcore-370294f6d1471b89a30c1f8b917cde3830d66b2f.tar.gz
core-370294f6d1471b89a30c1f8b917cde3830d66b2f.zip
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/source/items/paraitem.cxx')
-rw-r--r--editeng/source/items/paraitem.cxx8
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,