diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2021-01-02 20:35:33 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-01-03 08:53:17 +0100 |
commit | 3140d30ba56b95536e9f92ef3074579524791fe5 (patch) | |
tree | 47f57f036133ad06b4fff5ce63c842c40af0e4ef /sw/source/core/graphic | |
parent | f4e8c28e465d103a7ac4bc711e3b23ad3cae9996 (diff) |
tighten up asserting in SfxPoolItem::operator==
...subclasses, so we always call the SfxPoolItem::operatar==
which will ensure that we are always comparing two objects that
belong to the same class.
And fix the fallout in SvxUnoNameItemTable.
Change-Id: I5ec7fedaa914a328897b54c016ad13e505a15937
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108599
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/graphic')
-rw-r--r-- | sw/source/core/graphic/grfatr.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/graphic/grfatr.cxx b/sw/source/core/graphic/grfatr.cxx index 48e56afb585e..b86ad78553c3 100644 --- a/sw/source/core/graphic/grfatr.cxx +++ b/sw/source/core/graphic/grfatr.cxx @@ -40,7 +40,7 @@ sal_uInt16 SwMirrorGrf::GetValueCount() const bool SwMirrorGrf::operator==( const SfxPoolItem& rItem) const { - return SfxEnumItem::operator==(static_cast<const SfxEnumItem<MirrorGraph>&>(rItem)) && + return SfxEnumItem::operator==(rItem) && static_cast<const SwMirrorGrf&>(rItem).IsGrfToggle() == IsGrfToggle(); } |