summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@libreoffice.org>2018-02-02 22:41:55 +0100
committerBjoern Michaelsen <bjoern.michaelsen@libreoffice.org>2018-02-02 22:41:55 +0100
commit66df13011e863016182ff6b73f4472cba07a9083 (patch)
tree6fbda02c7160b6090a748b009679afeee9765040
parent4cd170ce853555c5b1bdbb70b13f691b8c300e98 (diff)
intermediate: Modify->SwClientNotify
Change-Id: I7198ad8fc638cd138bb3687d7d5760dcff27c743
-rw-r--r--sw/source/core/unocore/unoidx.cxx14
1 files changed, 8 insertions, 6 deletions
diff --git a/sw/source/core/unocore/unoidx.cxx b/sw/source/core/unocore/unoidx.cxx
index a29ee64b13e9..0501b69017d3 100644
--- a/sw/source/core/unocore/unoidx.cxx
+++ b/sw/source/core/unocore/unoidx.cxx
@@ -1593,14 +1593,16 @@ public:
}
}
protected:
- // SwClient
- virtual void Modify(const SfxPoolItem *pOld, const SfxPoolItem *pNew) override
+ virtual void SwClientNotify( const SwModify&, const SfxHint& rHint ) override
{
- switch( pOld ? pOld->Which() : 0 )
+ if (auto pLegacyHint = dynamic_cast<const sw::LegacyModifyHint*>(&rHint))
{
- case RES_REMOVE_UNO_OBJECT:
- case RES_OBJECTDYING:
- Invalidate();
+ switch( pLegacyHint->m_pOld ? pLegacyHint->m_pOld->Which() : 0 )
+ {
+ case RES_REMOVE_UNO_OBJECT:
+ case RES_OBJECTDYING:
+ Invalidate();
+ }
}
}
};