Fix initialization order in CEngine (#118)

The order of initialization of fields is required to match the one in
class member fields declaration.
This commit is contained in:
Michał Janiszewski
2019-03-06 23:51:21 +01:00
committed by Matt Cooley
parent 1eb717f336
commit 07ff1c372f
3 changed files with 25 additions and 25 deletions

View File

@@ -14,8 +14,8 @@ namespace CalcEngine
{
public:
CalcNumSec() :
m_isNegative(false),
value()
value(),
m_isNegative(false)
{}
void Clear();
@@ -37,12 +37,12 @@ namespace CalcEngine
{}
CalcInput(wchar_t decSymbol) :
m_base(),
m_exponent(),
m_hasExponent(false),
m_hasDecimal(false),
m_decPtIndex(0),
m_decSymbol(decSymbol)
m_decSymbol(decSymbol),
m_base(),
m_exponent()
{}
void Clear();