summaryrefslogtreecommitdiff
path: root/svl/source/items/poolitem.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svl/source/items/poolitem.cxx')
-rw-r--r--svl/source/items/poolitem.cxx13
1 files changed, 6 insertions, 7 deletions
diff --git a/svl/source/items/poolitem.cxx b/svl/source/items/poolitem.cxx
index 7df7535d65cb..36eaac4f2f78 100644
--- a/svl/source/items/poolitem.cxx
+++ b/svl/source/items/poolitem.cxx
@@ -22,12 +22,7 @@
#include <tools/stream.hxx>
#include <osl/diagnose.h>
#include <libxml/xmlwriter.h>
-
-TYPEINIT0(SfxPoolItem);
-TYPEINIT1(SfxVoidItem, SfxPoolItem);
-// @@@ TYPEINIT1(SfxInvalidItem, SfxPoolItem);
-TYPEINIT1(SfxSetItem, SfxPoolItem);
-// @@@ TYPEINIT1(SfxItemChangedHint, SfxHint);
+#include <typeinfo>
#if OSL_DEBUG_LEVEL > 1
@@ -125,7 +120,7 @@ SfxPoolItem::~SfxPoolItem()
bool SfxPoolItem::operator==( const SfxPoolItem& rCmp ) const
{
- return rCmp.Type() == Type();
+ return typeid(rCmp) == typeid(*this);
}
@@ -200,6 +195,10 @@ void SfxPoolItem::dumpAsXml(xmlTextWriterPtr pWriter) const
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr()));
xmlTextWriterEndElement(pWriter);
}
+SfxPoolItem* SfxVoidItem::CreateDefault()
+{
+ return new SfxVoidItem(0);
+}
SfxVoidItem::SfxVoidItem( sal_uInt16 which ):
SfxPoolItem(which)