[Libreoffice-commits] core.git: include/xmloff xmloff/source

Stephan Bergmann sbergman at redhat.com
Wed Jul 8 14:27:42 PDT 2015


 include/xmloff/xmlexp.hxx       |    2 +-
 xmloff/source/text/txtimppr.cxx |    2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 35ce23bd97995aa15a81eaa29c7a1d4feb78cd86
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Wed Jul 8 23:26:57 2015 +0200

    Avoid loplugin:staticmethods in non-debug build
    
    Change-Id: I9f98e86556ed4435d24f49b32b848eb9f9a66008

diff --git a/include/xmloff/xmlexp.hxx b/include/xmloff/xmlexp.hxx
index dc47596..83c03dc 100644
--- a/include/xmloff/xmlexp.hxx
+++ b/include/xmloff/xmlexp.hxx
@@ -340,7 +340,7 @@ public:
 
     // Check if common attribute list is empty.
 #ifndef DBG_UTIL
-    void CheckAttrList() {}
+    void CheckAttrList() { (void) this; /* avoid loplugin:staticmethods */ }
 #else
     void CheckAttrList();
 #endif
diff --git a/xmloff/source/text/txtimppr.cxx b/xmloff/source/text/txtimppr.cxx
index ab11b94..1a0f67e 100644
--- a/xmloff/source/text/txtimppr.cxx
+++ b/xmloff/source/text/txtimppr.cxx
@@ -241,6 +241,8 @@ void XMLTextImportPropertyMapper::FontDefaultsCheck(
                                                        aAny );
         }
     }
+
+    (void) this; // avoid loplugin:staticmethods
 }
 
 namespace {


More information about the Libreoffice-commits mailing list