summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-03-20 11:13:26 +0000
committerStephan Bergmann <sbergman@redhat.com>2015-03-20 11:13:26 +0000
commit3925b8acf75aaea98894602542d907cfdf0b922d (patch)
tree17ce526dd367e63bfa4b8cf3bddb1c303f918a89
parentDon't include vcl's private include files in desktop (diff)
downloadcore-3925b8acf75aaea98894602542d907cfdf0b922d.tar.gz
core-3925b8acf75aaea98894602542d907cfdf0b922d.zip
Fix various loplugin warnings
Change-Id: I1c8734ad157a0570ab7829e4d0990c806918d2b1
-rw-r--r--sw/qa/core/uwriter.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/sw/qa/core/uwriter.cxx b/sw/qa/core/uwriter.cxx
index edfa2417e539..31e0ee8bccda 100644
--- a/sw/qa/core/uwriter.cxx
+++ b/sw/qa/core/uwriter.cxx
@@ -1392,15 +1392,16 @@ namespace
{
struct TestModify : SwModify
{
- TYPEINFO();
+ TYPEINFO_OVERRIDE();
};
TYPEINIT1( TestModify, SwModify );
struct TestClient : SwClient
{
- TYPEINFO();
+ TYPEINFO_OVERRIDE();
int m_nModifyCount;
TestClient() : m_nModifyCount(0) {};
virtual void Modify( const SfxPoolItem*, const SfxPoolItem*)
+ SAL_OVERRIDE
{
ShowReg();
++m_nModifyCount;
@@ -1418,11 +1419,12 @@ namespace
};
TYPEINIT1( TestClient, SwClient );
struct OtherTestClient : SwClient
- { TYPEINFO(); };
+ { TYPEINFO_OVERRIDE(); };
TYPEINIT1( OtherTestClient, SwClient );
}
void SwDocTest::testClientModify()
{
+ (void) OtherTestClient(); // avoid loplugin:unreffun
TestModify aMod;
TestClient aClient1, aClient2;
aMod.Add(&aClient1);