Kaydet (Commit) 3925b8ac authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Fix various loplugin warnings

Change-Id: I1c8734ad157a0570ab7829e4d0990c806918d2b1
üst a8445614
...@@ -1392,15 +1392,16 @@ namespace ...@@ -1392,15 +1392,16 @@ namespace
{ {
struct TestModify : SwModify struct TestModify : SwModify
{ {
TYPEINFO(); TYPEINFO_OVERRIDE();
}; };
TYPEINIT1( TestModify, SwModify ); TYPEINIT1( TestModify, SwModify );
struct TestClient : SwClient struct TestClient : SwClient
{ {
TYPEINFO(); TYPEINFO_OVERRIDE();
int m_nModifyCount; int m_nModifyCount;
TestClient() : m_nModifyCount(0) {}; TestClient() : m_nModifyCount(0) {};
virtual void Modify( const SfxPoolItem*, const SfxPoolItem*) virtual void Modify( const SfxPoolItem*, const SfxPoolItem*)
SAL_OVERRIDE
{ {
ShowReg(); ShowReg();
++m_nModifyCount; ++m_nModifyCount;
...@@ -1418,11 +1419,12 @@ namespace ...@@ -1418,11 +1419,12 @@ namespace
}; };
TYPEINIT1( TestClient, SwClient ); TYPEINIT1( TestClient, SwClient );
struct OtherTestClient : SwClient struct OtherTestClient : SwClient
{ TYPEINFO(); }; { TYPEINFO_OVERRIDE(); };
TYPEINIT1( OtherTestClient, SwClient ); TYPEINIT1( OtherTestClient, SwClient );
} }
void SwDocTest::testClientModify() void SwDocTest::testClientModify()
{ {
(void) OtherTestClient(); // avoid loplugin:unreffun
TestModify aMod; TestModify aMod;
TestClient aClient1, aClient2; TestClient aClient1, aClient2;
aMod.Add(&aClient1); aMod.Add(&aClient1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment