Remove empty COpndCommand destructor. Cleanup constructor declaration.
This commit is contained in:
parent
b70a12c6cf
commit
ebfce5a8cd
@ -95,11 +95,13 @@ void CBinaryCommand::Accept(_In_ ISerializeCommandVisitor &commandVisitor)
|
|||||||
commandVisitor.Visit(*this);
|
commandVisitor.Visit(*this);
|
||||||
}
|
}
|
||||||
|
|
||||||
COpndCommand::COpndCommand(_In_ shared_ptr<CalculatorVector<int>> const &commands,
|
COpndCommand::COpndCommand(shared_ptr<CalculatorVector<int>> const &commands, bool fNegative, bool fDecimal, bool fSciFmt) :
|
||||||
bool fNegative,
|
m_commands(commands),
|
||||||
bool fDecimal,
|
m_fNegative(fNegative),
|
||||||
bool fSciFmt) :
|
m_fDecimal(fDecimal),
|
||||||
m_commands(commands), m_fNegative(fNegative), m_fDecimal(fDecimal), m_fSciFmt(fSciFmt), m_fInitialized(false), m_value{}
|
m_fSciFmt(fSciFmt),
|
||||||
|
m_fInitialized(false),
|
||||||
|
m_value{}
|
||||||
{}
|
{}
|
||||||
|
|
||||||
void COpndCommand::Initialize(Rational const& rat)
|
void COpndCommand::Initialize(Rational const& rat)
|
||||||
@ -299,9 +301,6 @@ wstring COpndCommand::GetString(uint32_t radix, int32_t precision, wchar_t decim
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
COpndCommand::~COpndCommand()
|
|
||||||
{}
|
|
||||||
|
|
||||||
void COpndCommand::Accept(_In_ ISerializeCommandVisitor &commandVisitor)
|
void COpndCommand::Accept(_In_ ISerializeCommandVisitor &commandVisitor)
|
||||||
{
|
{
|
||||||
commandVisitor.Visit(*this);
|
commandVisitor.Visit(*this);
|
||||||
|
@ -49,11 +49,11 @@ private:
|
|||||||
class COpndCommand : public IOpndCommand
|
class COpndCommand : public IOpndCommand
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
COpndCommand(_In_ std::shared_ptr<CalculatorVector<int>> const &commands,
|
COpndCommand(
|
||||||
|
std::shared_ptr<CalculatorVector<int>> const &commands,
|
||||||
bool fNegative,
|
bool fNegative,
|
||||||
bool fDecimal,
|
bool fDecimal,
|
||||||
bool fSciFmt);
|
bool fSciFmt);
|
||||||
~COpndCommand();
|
|
||||||
void Initialize(CalcEngine::Rational const& rat);
|
void Initialize(CalcEngine::Rational const& rat);
|
||||||
|
|
||||||
const std::shared_ptr<CalculatorVector<int>> & GetCommands() const;
|
const std::shared_ptr<CalculatorVector<int>> & GetCommands() const;
|
||||||
|
Loading…
Reference in New Issue
Block a user