summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-10-22 17:18:34 +0100
committerAndras Timar <andras.timar@collabora.com>2015-10-26 16:04:11 +0100
commit11a340ba9dca9b5d630ddee71e0cd5b3c597d92f (patch)
tree3aa2971bc63e85f90d0dff8aa93b8d4bc6ab8e48 /include
parentcrashtesting+ubsan: kde170880-1.html ANISTOPINSIDE cast to StartInsideItem (diff)
downloadcore-11a340ba9dca9b5d630ddee71e0cd5b3c597d92f.tar.gz
core-11a340ba9dca9b5d630ddee71e0cd5b3c597d92f.zip
crashtesting+ubsan: kde170880-1.html bad cast to SdrTextAniCountItem
because a clone of SdrTextAniCountItem is a SfxUInt16Item not a SdrTextAniCountItem Change-Id: I7b8f99b52b1f42a6a28af4495ff25ddb6d497f61 (cherry picked from commit e5c8d01b1c174eafb3335604380480a513ac8db1) Reviewed-on: https://gerrit.libreoffice.org/19536 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com> (cherry picked from commit 0423b5c33ea2c9a5942a20939656e65a56234500)
Diffstat (limited to 'include')
-rw-r--r--include/svx/sdtacitm.hxx8
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