summaryrefslogtreecommitdiff
path: root/sw/qa/core/uwriter.cxx
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@libreoffice.org>2020-12-31 23:03:01 +0100
committerBjoern Michaelsen <bjoern.michaelsen@libreoffice.org>2021-01-02 21:56:11 +0100
commitac624ef10a4620c2a12ea688e313a8d5173052cf (patch)
treeeba5ab66ba08b6247bae965a5f9add261f9bb6e6 /sw/qa/core/uwriter.cxx
parented7d6dd9e222daef5a0d0147e0311b951f9a29ce (diff)
SwFrame: Modify no more
Change-Id: I8e2c89f2c897535013d64720b6c2c5bbac602b14 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108551 Tested-by: Jenkins Reviewed-by: Bjoern Michaelsen <bjoern.michaelsen@libreoffice.org>
Diffstat (limited to 'sw/qa/core/uwriter.cxx')
-rw-r--r--sw/qa/core/uwriter.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/sw/qa/core/uwriter.cxx b/sw/qa/core/uwriter.cxx
index 9da61561f3ff..db2422fed04b 100644
--- a/sw/qa/core/uwriter.cxx
+++ b/sw/qa/core/uwriter.cxx
@@ -1827,8 +1827,6 @@ namespace
int m_nModifyChangedCount;
const SwModify* m_pLastChangedModify;
TestClient() : m_nModifyCount(0), m_nNotifyCount(0), m_nModifyChangedCount(0), m_pLastChangedModify(nullptr) {};
- virtual void Modify( const SfxPoolItem*, const SfxPoolItem*) override
- { assert(false); }
virtual void SwClientNotify(const SwModify&, const SfxHint& rHint) override
{
if(typeid(TestHint) == typeid(rHint))
@@ -1846,8 +1844,11 @@ namespace
{
int m_nModifyCount;
OtherTestClient() : m_nModifyCount(0) {};
- virtual void Modify( const SfxPoolItem*, const SfxPoolItem*) override
- { ++m_nModifyCount; }
+ virtual void SwClientNotify(const SwModify&, const SfxHint& rHint) override
+ {
+ if(dynamic_cast<const sw::LegacyModifyHint*>(&rHint))
+ ++m_nModifyCount;
+ }
};
struct TestListener : SvtListener
{