summaryrefslogtreecommitdiff
path: root/sw/source/core/attr
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-06-10 17:20:50 +0200
committerMichael Stahl <mstahl@redhat.com>2015-06-10 17:32:50 +0200
commit2676ee8ededce1aab9888bb3be0b6146e4624dfb (patch)
tree3be5aa921ccd1320aac97e518d5296bdd2c32dde /sw/source/core/attr
parentf5ca824f4c7f6bea7f2caf51715aa865250d1288 (diff)
sw: fix GCC undefined reference to `typeinfo for sw::LegacyModifyHint'
Stop pointlessly inlining these virtual functions. Change-Id: I11d123bc704ec6cf54925a13d139fce70cc59566
Diffstat (limited to 'sw/source/core/attr')
-rw-r--r--sw/source/core/attr/calbck.cxx14
1 files changed, 14 insertions, 0 deletions
diff --git a/sw/source/core/attr/calbck.cxx b/sw/source/core/attr/calbck.cxx
index f3a4aa0a33b4..d836db25fa8d 100644
--- a/sw/source/core/attr/calbck.cxx
+++ b/sw/source/core/attr/calbck.cxx
@@ -57,6 +57,20 @@ void SwClient::CheckRegistration( const SfxPoolItem* pOld, const SfxPoolItem* )
}
}
+void SwClient::SwClientNotify(const SwModify&, const SfxHint& rHint)
+{
+ if (typeid(rHint) == typeid(sw::LegacyModifyHint))
+ {
+ auto pLegacyHint(static_cast<const sw::LegacyModifyHint*>(&rHint));
+ Modify(pLegacyHint->m_pOld, pLegacyHint->m_pNew);
+ }
+};
+
+void SwClient::Modify(SfxPoolItem const*const pOldValue, SfxPoolItem const*const pNewValue)
+{
+ CheckRegistration( pOldValue, pNewValue );
+}
+
SwModify::~SwModify()
{
OSL_ENSURE( !IsModifyLocked(), "Modify destroyed but locked." );