summaryrefslogtreecommitdiff
path: root/include/formula
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-04-30 10:47:56 +0200
committerNoel Grandin <noel@peralex.com>2015-05-05 09:30:39 +0200
commitf304a7a14a4af4d3f46eab18d5494194028e61ef (patch)
tree7f51b8efe4427d01fc688925c44e0a05e3c64c7b /include/formula
parentb2b85c2b3920fdd92b8d3bf32af1cac5679e116e (diff)
loplugin:staticmethods
Change-Id: I384a5e60f4b7b2f479c89ef97630519059ab720f
Diffstat (limited to 'include/formula')
-rw-r--r--include/formula/FormulaCompiler.hxx4
-rw-r--r--include/formula/tokenarray.hxx4
2 files changed, 4 insertions, 4 deletions
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<OpCode, std::hash<o3tl::underlying_type<OpCode>::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. */