[Libreoffice-commits] core.git: sw/qa
Stephan Bergmann
sbergman at redhat.com
Fri Mar 20 04:13:55 PDT 2015
sw/qa/core/uwriter.cxx | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
New commits:
commit 3925b8acf75aaea98894602542d907cfdf0b922d
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Fri Mar 20 11:13:26 2015 +0000
Fix various loplugin warnings
Change-Id: I1c8734ad157a0570ab7829e4d0990c806918d2b1
diff --git a/sw/qa/core/uwriter.cxx b/sw/qa/core/uwriter.cxx
index edfa241..31e0ee8 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);
More information about the Libreoffice-commits
mailing list