Better way to silence loplugin:staticmethods
...in this !ENABLE_FORMULA_LOGGER dummy implementation Change-Id: Ifaf3356ada68d70164644f89fc6dc6d66f22024b
This commit is contained in:
@@ -95,7 +95,6 @@ public:
|
|||||||
*/
|
*/
|
||||||
class FormulaLogger
|
class FormulaLogger
|
||||||
{
|
{
|
||||||
bool mbState = false; // Just to avoid loplugin:staticmethods
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
static FormulaLogger get()
|
static FormulaLogger get()
|
||||||
@@ -105,15 +104,14 @@ public:
|
|||||||
|
|
||||||
class GroupScope
|
class GroupScope
|
||||||
{
|
{
|
||||||
bool mbState = false; // Just to avoid loplugin:staticmethods
|
|
||||||
public:
|
public:
|
||||||
void addMessage( const OUString& /*rMsg*/ ) { mbState = !mbState; }
|
void addMessage( const OUString& /*rMsg*/ ) { (void) this; /* loplugin:staticmethods */ }
|
||||||
void setCalcComplete() { mbState = !mbState; }
|
void setCalcComplete() { (void) this; /* loplugin:staticmethods */ }
|
||||||
};
|
};
|
||||||
|
|
||||||
GroupScope enterGroup( const ScDocument& /*rDoc*/, const ScFormulaCell& /*rCell*/ )
|
GroupScope enterGroup( const ScDocument& /*rDoc*/, const ScFormulaCell& /*rCell*/ )
|
||||||
{
|
{
|
||||||
mbState = !mbState;
|
(void) this; /* loplugin:staticmethods */
|
||||||
return GroupScope();
|
return GroupScope();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user