[Libreoffice-commits] core.git: svl/source

Caolán McNamara caolanm at redhat.com
Wed Nov 11 03:05:32 PST 2015


 svl/source/items/itempool.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit b92174e4c723bacfcfc245a483365cc7fb5d72c1
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Wed Nov 11 11:05:04 2015 +0000

    fix svl build
    
    Change-Id: I23a8b3a86ecbab4f1e5b6ae6405279fabcbdb7e3

diff --git a/svl/source/items/itempool.cxx b/svl/source/items/itempool.cxx
index de032c0..b0eb941 100644
--- a/svl/source/items/itempool.cxx
+++ b/svl/source/items/itempool.cxx
@@ -742,7 +742,7 @@ const SfxPoolItem& SfxItemPool::Put( const SfxPoolItem& rItem, sal_uInt16 nWhich
     SfxPoolItem* pNewItem = rItem.Clone(pImp->mpMaster);
     pNewItem->SetWhich(nWhich);
 #ifdef DBG_UTIL
-    SFX_ASSERT( rItem.Type() == pNewItem->Type(), nWhich, "unequal types in Put(): no Clone()?" )
+    SFX_ASSERT( typeid(rItem) == typeid(*pNewItem), nWhich, "unequal types in Put(): no Clone()?" )
     if (dynamic_cast<const SfxSetItem*>(&rItem) == nullptr)
     {
         SFX_ASSERT( !IsItemFlag(nWhich, SfxItemPoolFlags::POOLABLE) ||


More information about the Libreoffice-commits mailing list