summaryrefslogtreecommitdiff
path: root/formula
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2015-11-18 20:40:56 +0100
committerEike Rathke <erack@redhat.com>2015-11-18 21:02:06 +0100
commit270f8ea48b4d4cec8e1d6e37dd5147b8f4d74b34 (patch)
tree44f774da72585dc68a02a54d0768b6a6dd52d3c9 /formula
parentb1adb498bb0a5ff091c9d1d82332a4c43c57979b (diff)
rename FormulaToken HasForceArray to IsInForceArray
... to name it was it does and to distinguish from ScParameterClassification::HasForceArray(OpCode) which IS about a function having ForceArray parameters. Change-Id: I8af4e1d0353cdb5ad0a9b837ae0763dc77242734
Diffstat (limited to 'formula')
-rw-r--r--formula/source/core/api/FormulaCompiler.cxx6
-rw-r--r--formula/source/core/api/token.cxx18
2 files changed, 12 insertions, 12 deletions
diff --git a/formula/source/core/api/FormulaCompiler.cxx b/formula/source/core/api/FormulaCompiler.cxx
index 421e829e7e14..c4ca443ffef9 100644
--- a/formula/source/core/api/FormulaCompiler.cxx
+++ b/formula/source/core/api/FormulaCompiler.cxx
@@ -2262,15 +2262,15 @@ void FormulaCompiler::ForceArrayOperator( FormulaTokenRef& rCurr )
if (!(rCurr->GetOpCode() != ocPush && (rCurr->GetType() == svByte || rCurr->GetType() == svJump)))
return;
- if (pCurrentFactorToken->HasForceArray())
+ if (pCurrentFactorToken->IsInForceArray())
{
- rCurr->SetForceArray( true);
+ rCurr->SetInForceArray( true);
return;
}
if (nCurrentFactorParam && IsForceArrayParameter( pCurrentFactorToken.get(),
static_cast<sal_uInt8>(nCurrentFactorParam - 1)))
- rCurr->SetForceArray( true);
+ rCurr->SetInForceArray( true);
}
void FormulaCompiler::CheckSetForceArrayParameter( FormulaTokenRef& rCurr, sal_uInt8 nParam )
diff --git a/formula/source/core/api/token.cxx b/formula/source/core/api/token.cxx
index e7da2bd7d6ff..27162715303b 100644
--- a/formula/source/core/api/token.cxx
+++ b/formula/source/core/api/token.cxx
@@ -174,15 +174,15 @@ void FormulaToken::SetByte( sal_uInt8 )
SAL_WARN( "formula.core", "FormulaToken::SetByte: virtual dummy called" );
}
-bool FormulaToken::HasForceArray() const
+bool FormulaToken::IsInForceArray() const
{
// ok to be called for any derived class
return false;
}
-void FormulaToken::SetForceArray( bool )
+void FormulaToken::SetInForceArray( bool )
{
- SAL_WARN( "formula.core", "FormulaToken::SetForceArray: virtual dummy called" );
+ SAL_WARN( "formula.core", "FormulaToken::SetInForceArray: virtual dummy called" );
}
double FormulaToken::GetDouble() const
@@ -333,12 +333,12 @@ bool FormulaToken::TextEqual( const FormulaToken& rToken ) const
sal_uInt8 FormulaByteToken::GetByte() const { return nByte; }
void FormulaByteToken::SetByte( sal_uInt8 n ) { nByte = n; }
-bool FormulaByteToken::HasForceArray() const { return bHasForceArray; }
-void FormulaByteToken::SetForceArray( bool b ) { bHasForceArray = b; }
+bool FormulaByteToken::IsInForceArray() const { return bIsInForceArray; }
+void FormulaByteToken::SetInForceArray( bool b ) { bIsInForceArray = b; }
bool FormulaByteToken::operator==( const FormulaToken& r ) const
{
return FormulaToken::operator==( r ) && nByte == r.GetByte() &&
- bHasForceArray == r.HasForceArray();
+ bIsInForceArray == r.IsInForceArray();
}
@@ -350,13 +350,13 @@ bool FormulaFAPToken::operator==( const FormulaToken& r ) const
short* FormulaJumpToken::GetJump() const { return pJump; }
-bool FormulaJumpToken::HasForceArray() const { return bHasForceArray; }
-void FormulaJumpToken::SetForceArray( bool b ) { bHasForceArray = b; }
+bool FormulaJumpToken::IsInForceArray() const { return bIsInForceArray; }
+void FormulaJumpToken::SetInForceArray( bool b ) { bIsInForceArray = b; }
bool FormulaJumpToken::operator==( const FormulaToken& r ) const
{
return FormulaToken::operator==( r ) && pJump[0] == r.GetJump()[0] &&
memcmp( pJump+1, r.GetJump()+1, pJump[0] * sizeof(short) ) == 0 &&
- bHasForceArray == r.HasForceArray();
+ bIsInForceArray == r.IsInForceArray();
}
FormulaJumpToken::~FormulaJumpToken()
{