Kaydet (Commit) d283eadb authored tarafından Caolán McNamara's avatar Caolán McNamara

WaE: various compiler warnings

üst a1885cb7
......@@ -722,6 +722,7 @@ OpCode FormulaCompiler::GetEnglishOpCode( const String& rName ) const
bool FormulaCompiler::IsOpCodeVolatile( OpCode eOp )
{
bool bRet = false;
switch (eOp)
{
// no parameters:
......@@ -739,9 +740,13 @@ bool FormulaCompiler::IsOpCodeVolatile( OpCode eOp )
case ocIndirectXL:
// ocOffset results in indirect references.
case ocOffset:
return true;
bRet = true;
break;
default:
bRet = false;
break;
}
return false;
return bRet;
}
// Remove quotes, escaped quotes are unescaped.
......
......@@ -135,14 +135,19 @@ bool FormulaToken::IsMatrixFunction() const
bool FormulaToken::IsExternalRef() const
{
bool bRet = false;
switch (eType)
{
case svExternalSingleRef:
case svExternalDoubleRef:
case svExternalName:
return true;
bRet = true;
break;
default:
bRet = false;
break;
}
return false;
return bRet;
}
bool FormulaToken::operator==( const FormulaToken& rToken ) const
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment