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);
|
||||
}
|
||||
|
||||
COpndCommand::COpndCommand(_In_ shared_ptr<CalculatorVector<int>> const &commands,
|
||||
bool fNegative,
|
||||
bool fDecimal,
|
||||
bool fSciFmt) :
|
||||
m_commands(commands), m_fNegative(fNegative), m_fDecimal(fDecimal), m_fSciFmt(fSciFmt), m_fInitialized(false), m_value{}
|
||||
COpndCommand::COpndCommand(shared_ptr<CalculatorVector<int>> const &commands, bool fNegative, bool fDecimal, bool fSciFmt) :
|
||||
m_commands(commands),
|
||||
m_fNegative(fNegative),
|
||||
m_fDecimal(fDecimal),
|
||||
m_fSciFmt(fSciFmt),
|
||||
m_fInitialized(false),
|
||||
m_value{}
|
||||
{}
|
||||
|
||||
void COpndCommand::Initialize(Rational const& rat)
|
||||
@ -299,9 +301,6 @@ wstring COpndCommand::GetString(uint32_t radix, int32_t precision, wchar_t decim
|
||||
return result;
|
||||
}
|
||||
|
||||
COpndCommand::~COpndCommand()
|
||||
{}
|
||||
|
||||
void COpndCommand::Accept(_In_ ISerializeCommandVisitor &commandVisitor)
|
||||
{
|
||||
commandVisitor.Visit(*this);
|
||||
|
@ -49,11 +49,11 @@ private:
|
||||
class COpndCommand : public IOpndCommand
|
||||
{
|
||||
public:
|
||||
COpndCommand(_In_ std::shared_ptr<CalculatorVector<int>> const &commands,
|
||||
COpndCommand(
|
||||
std::shared_ptr<CalculatorVector<int>> const &commands,
|
||||
bool fNegative,
|
||||
bool fDecimal,
|
||||
bool fSciFmt);
|
||||
~COpndCommand();
|
||||
void Initialize(CalcEngine::Rational const& rat);
|
||||
|
||||
const std::shared_ptr<CalculatorVector<int>> & GetCommands() const;
|
||||
|
Loading…
Reference in New Issue
Block a user