Remove empty COpndCommand destructor. Cleanup constructor declaration.

This commit is contained in:
Josh Koon 2019-01-29 14:28:03 -08:00
parent b70a12c6cf
commit ebfce5a8cd
2 changed files with 9 additions and 10 deletions

View File

@ -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);

View File

@ -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;