summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2015-03-20 12:30:12 +0100
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2015-03-20 19:07:20 +0100
commitc5036a67632a2b3a5dae7e8e4cfc6820484ac660 (patch)
treeebebecc1e82cb90fa063e76edba4a338b538920b /sw
parent0bf4e6e21101a66bb63778ab49006ee90c16ea94 (diff)
copy a full OtherTestClient implementation
Change-Id: I3d72385ae643bec9623fd2e8f406504a20b4142c
Diffstat (limited to 'sw')
-rw-r--r--sw/qa/core/uwriter.cxx27
1 files changed, 10 insertions, 17 deletions
diff --git a/sw/qa/core/uwriter.cxx b/sw/qa/core/uwriter.cxx
index 31e0ee8bccda..c3fcad4eff9c 100644
--- a/sw/qa/core/uwriter.cxx
+++ b/sw/qa/core/uwriter.cxx
@@ -1400,26 +1400,19 @@ namespace
TYPEINFO_OVERRIDE();
int m_nModifyCount;
TestClient() : m_nModifyCount(0) {};
- virtual void Modify( const SfxPoolItem*, const SfxPoolItem*)
- SAL_OVERRIDE
- {
- ShowReg();
- ++m_nModifyCount;
- }
-
- void ShowReg()
- {
- if(GetRegisteredIn())
- {
- std::cout << "TestClient " << this << " registered in " << GetRegisteredIn() << std::endl;
- }
- else
- std::cout << "TestClient " << this << " not registered " << std::endl;
- }
+ virtual void Modify( const SfxPoolItem*, const SfxPoolItem*) SAL_OVERRIDE
+ { ++m_nModifyCount; }
};
TYPEINIT1( TestClient, SwClient );
+ // sad copypasta as tools/rtti.hxxs little brain cant cope with templates
struct OtherTestClient : SwClient
- { TYPEINFO_OVERRIDE(); };
+ {
+ TYPEINFO_OVERRIDE();
+ int m_nModifyCount;
+ OtherTestClient() : m_nModifyCount(0) {};
+ virtual void Modify( const SfxPoolItem*, const SfxPoolItem*) SAL_OVERRIDE
+ { ++m_nModifyCount; }
+ };
TYPEINIT1( OtherTestClient, SwClient );
}
void SwDocTest::testClientModify()