diff options
author | Noel Grandin <noel@peralex.com> | 2015-04-30 10:47:56 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-05-05 09:30:39 +0200 |
commit | f304a7a14a4af4d3f46eab18d5494194028e61ef (patch) | |
tree | 7f51b8efe4427d01fc688925c44e0a05e3c64c7b /formula | |
parent | b2b85c2b3920fdd92b8d3bf32af1cac5679e116e (diff) |
loplugin:staticmethods
Change-Id: I384a5e60f4b7b2f479c89ef97630519059ab720f
Diffstat (limited to 'formula')
-rw-r--r-- | formula/source/core/api/FormulaCompiler.cxx | 4 | ||||
-rw-r--r-- | formula/source/core/api/token.cxx | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/formula/source/core/api/FormulaCompiler.cxx b/formula/source/core/api/FormulaCompiler.cxx index 7319c34b0964..9a933c10b928 100644 --- a/formula/source/core/api/FormulaCompiler.cxx +++ b/formula/source/core/api/FormulaCompiler.cxx @@ -1752,7 +1752,7 @@ void FormulaCompiler::CreateStringFromTokenArray( OUStringBuffer& rBuffer ) { // Scan token array for missing args and rewrite if present. MissingConventionOOXML aConv; - if (pArr->NeedsOoxmlRewrite( aConv)) + if (pArr->NeedsOoxmlRewrite()) pArr = pArr->RewriteMissing( aConv ); } @@ -1979,7 +1979,7 @@ void FormulaCompiler::AppendBoolean( OUStringBuffer& rBuffer, bool bVal ) const rBuffer.append( mxSymbols->getSymbol( static_cast<OpCode>(bVal ? ocTrue : ocFalse)) ); } -void FormulaCompiler::AppendString( OUStringBuffer& rBuffer, const OUString & rStr ) const +void FormulaCompiler::AppendString( OUStringBuffer& rBuffer, const OUString & rStr ) { rBuffer.append( '"'); if ( lcl_UnicodeStrChr( rStr.getStr(), '"' ) == NULL ) diff --git a/formula/source/core/api/token.cxx b/formula/source/core/api/token.cxx index a33ce70d4e25..c054db217d20 100644 --- a/formula/source/core/api/token.cxx +++ b/formula/source/core/api/token.cxx @@ -1037,7 +1037,7 @@ To be implemented yet: ocMacro: ? ocIndex: INDEX() ? */ -inline bool MissingConventionOOXML::isRewriteNeeded( OpCode eOp ) const +inline bool MissingConventionOOXML::isRewriteNeeded( OpCode eOp ) { switch (eOp) { @@ -1332,11 +1332,11 @@ bool FormulaTokenArray::NeedsPodfRewrite( const MissingConventionODF & rConv ) return false; } -bool FormulaTokenArray::NeedsOoxmlRewrite( const MissingConventionOOXML & rConv ) +bool FormulaTokenArray::NeedsOoxmlRewrite() { for ( FormulaToken *pCur = First(); pCur; pCur = Next() ) { - if ( rConv.isRewriteNeeded( pCur->GetOpCode())) + if ( MissingConventionOOXML::isRewriteNeeded( pCur->GetOpCode())) return true; } return false; |