From f304a7a14a4af4d3f46eab18d5494194028e61ef Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 30 Apr 2015 10:47:56 +0200 Subject: loplugin:staticmethods Change-Id: I384a5e60f4b7b2f479c89ef97630519059ab720f --- include/formula/FormulaCompiler.hxx | 4 ++-- include/formula/tokenarray.hxx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'include/formula') diff --git a/include/formula/FormulaCompiler.hxx b/include/formula/FormulaCompiler.hxx index 7d95ff156e23..6f6645b2dd50 100644 --- a/include/formula/FormulaCompiler.hxx +++ b/include/formula/FormulaCompiler.hxx @@ -207,7 +207,7 @@ public: @param bEnglish Use English number parser / formatter instead of native. */ - OpCodeMapPtr CreateOpCodeMap( + static OpCodeMapPtr CreateOpCodeMap( const ::com::sun::star::uno::Sequence< const ::com::sun::star::sheet::FormulaOpCodeMapEntry > & rMapping, bool bEnglish ); @@ -249,7 +249,7 @@ public: void AppendBoolean( OUStringBuffer& rBuffer, bool bVal ) const; void AppendDouble( OUStringBuffer& rBuffer, double fVal ) const; - void AppendString( OUStringBuffer& rBuffer, const OUString & rStr ) const; + static void AppendString( OUStringBuffer& rBuffer, const OUString & rStr ); /** Set symbol map corresponding to one of predefined formula::FormulaGrammar::Grammar, including an address reference convention. */ diff --git a/include/formula/tokenarray.hxx b/include/formula/tokenarray.hxx index 52edc66299e2..8aebb4b1b45f 100644 --- a/include/formula/tokenarray.hxx +++ b/include/formula/tokenarray.hxx @@ -95,7 +95,7 @@ class FORMULA_DLLPUBLIC MissingConventionOOXML : public MissingConvention public: explicit MissingConventionOOXML() : MissingConvention( MissingConvention::FORMULA_MISSING_CONVENTION_OOXML) {} // Implementation and usage only in token.cxx - inline bool isRewriteNeeded( OpCode eOp ) const; + static inline bool isRewriteNeeded( OpCode eOp ); }; typedef std::unordered_set::type> > unordered_opcode_set; @@ -281,7 +281,7 @@ public: bool NeedsPodfRewrite( const MissingConventionODF & rConv ); /** Determines if this formula needs any changes to convert it to OOXML. */ - bool NeedsOoxmlRewrite( const MissingConventionOOXML & rConv ); + bool NeedsOoxmlRewrite(); /** Rewrites to Plain Old Formula or OOXML, substituting missing parameters. The FormulaTokenArray* returned is new'ed. */ -- cgit