summaryrefslogtreecommitdiff
path: root/sc/inc/formulalogger.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-10-26 13:03:40 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-10-26 13:03:40 +0200
commit532847746f7151905ad3a78baf6e175030b6a8ff (patch)
tree17464d7fe00de90878098bf9f1820543479001c8 /sc/inc/formulalogger.hxx
parent8efdf567de92d05ccfb1305228686287e7bca9e8 (diff)
Better way to silence loplugin:staticmethods
...in this !ENABLE_FORMULA_LOGGER dummy implementation Change-Id: Ifaf3356ada68d70164644f89fc6dc6d66f22024b
Diffstat (limited to 'sc/inc/formulalogger.hxx')
-rw-r--r--sc/inc/formulalogger.hxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/sc/inc/formulalogger.hxx b/sc/inc/formulalogger.hxx
index 10a0155483e7..0925d3056667 100644
--- a/sc/inc/formulalogger.hxx
+++ b/sc/inc/formulalogger.hxx
@@ -95,7 +95,6 @@ public:
*/
class FormulaLogger
{
- bool mbState = false; // Just to avoid loplugin:staticmethods
public:
static FormulaLogger get()
@@ -105,15 +104,14 @@ public:
class GroupScope
{
- bool mbState = false; // Just to avoid loplugin:staticmethods
public:
- void addMessage( const OUString& /*rMsg*/ ) { mbState = !mbState; }
- void setCalcComplete() { mbState = !mbState; }
+ void addMessage( const OUString& /*rMsg*/ ) { (void) this; /* loplugin:staticmethods */ }
+ void setCalcComplete() { (void) this; /* loplugin:staticmethods */ }
};
GroupScope enterGroup( const ScDocument& /*rDoc*/, const ScFormulaCell& /*rCell*/ )
{
- mbState = !mbState;
+ (void) this; /* loplugin:staticmethods */
return GroupScope();
}
};