diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-10-22 17:18:34 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-10-22 23:41:51 +0100 |
commit | e5c8d01b1c174eafb3335604380480a513ac8db1 (patch) | |
tree | 7e6ab054d29837c9072425d886203eeec8078fd0 /include | |
parent | d550cdb9411b53e20741d79489a2fcd0c4849c13 (diff) |
crashtesting+ubsan: kde170880-1.html bad cast to SdrTextAniCountItem
because a clone of SdrTextAniCountItem is a SfxUInt16Item not
a SdrTextAniCountItem
Change-Id: I7b8f99b52b1f42a6a28af4495ff25ddb6d497f61
Diffstat (limited to 'include')
-rw-r--r-- | include/svx/sdtacitm.hxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/svx/sdtacitm.hxx b/include/svx/sdtacitm.hxx index 79775ea2ed9e..23c71492cc6f 100644 --- a/include/svx/sdtacitm.hxx +++ b/include/svx/sdtacitm.hxx @@ -26,7 +26,13 @@ class SdrTextAniCountItem: public SfxUInt16Item { public: SdrTextAniCountItem(sal_uInt16 nVal=0): SfxUInt16Item(SDRATTR_TEXT_ANICOUNT,nVal) {} - SdrTextAniCountItem(SvStream& rIn): SfxUInt16Item(SDRATTR_TEXT_ANICOUNT,rIn) {} + SdrTextAniCountItem(SvStream& rIn): SfxUInt16Item(SDRATTR_TEXT_ANICOUNT,rIn) {} + + virtual SfxPoolItem * Create(SvStream & rStream, sal_uInt16) const override + { return new SdrTextAniCountItem(rStream); } + + virtual SfxPoolItem * Clone(SfxItemPool * = 0) const override + { return new SdrTextAniCountItem(*this); } }; #endif |