diff options
author | Oliver Specht <oliver.specht@cib.de> | 2015-11-07 14:43:19 +0100 |
---|---|---|
committer | Oliver Specht <oliver.specht@cib.de> | 2015-11-11 10:49:30 +0000 |
commit | fa91dd31f39a24329d288d4e1cda28db3a16af0d (patch) | |
tree | 603d7c206ac0ec1f1a08cc9f3bf8835bd8d2fb2f /sw/qa | |
parent | c21ddcdb30b8dd7be56176e00bc2d4780cb342e1 (diff) |
5th step to remove tools/rtti.hxx
tools/rtti.hxx removed
completed the interface of some Sdr.* Items
and removed pseudo items
Change-Id: I0cdcd01494be35b97a27d5985aa908affa96048a
Reviewed-on: https://gerrit.libreoffice.org/19837
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Oliver Specht <oliver.specht@cib.de>
Diffstat (limited to 'sw/qa')
-rw-r--r-- | sw/qa/core/uwriter.cxx | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/sw/qa/core/uwriter.cxx b/sw/qa/core/uwriter.cxx index 206fe93146d1..13d9642c3b79 100644 --- a/sw/qa/core/uwriter.cxx +++ b/sw/qa/core/uwriter.cxx @@ -1436,12 +1436,9 @@ namespace struct TestHint final : SfxHint {}; struct TestModify : SwModify { - TYPEINFO_OVERRIDE(); }; - TYPEINIT1( TestModify, SwModify ); struct TestClient : SwClient { - TYPEINFO_OVERRIDE(); int m_nModifyCount; int m_nNotifyCount; TestClient() : m_nModifyCount(0), m_nNotifyCount(0) {}; @@ -1455,17 +1452,14 @@ namespace SwClient::SwClientNotify(rModify, rHint); } }; - TYPEINIT1( TestClient, SwClient ); // sad copypasta as tools/rtti.hxxs little brain can't cope with templates struct OtherTestClient : SwClient { - TYPEINFO_OVERRIDE(); int m_nModifyCount; OtherTestClient() : m_nModifyCount(0) {}; virtual void Modify( const SfxPoolItem*, const SfxPoolItem*) override { ++m_nModifyCount; } }; - TYPEINIT1( OtherTestClient, SwClient ); } void SwDocTest::testClientModify() { @@ -1508,7 +1502,7 @@ void SwDocTest::testClientModify() CPPUNIT_ASSERT_EQUAL(aClient2.m_nNotifyCount,1); } // test typed iteration - CPPUNIT_ASSERT(!aClient1.IsA(TYPE(OtherTestClient))); + CPPUNIT_ASSERT(typeid(aClient1) != typeid(OtherTestClient)); { SwIterator<OtherTestClient,SwModify> aIter(aMod); for(OtherTestClient* pClient = aIter.First(); pClient ; pClient = aIter.Next()) |