Updating CalculatorHistory to use a default destructor. (#723)

Its memory will be cleaned up by std::vector's destructor.
This commit is contained in:
Scott Freeman 2019-10-21 15:47:09 -04:00 committed by Matt Cooley
parent bfa5f81ef6
commit f6a061c486
2 changed files with 0 additions and 6 deletions

View File

@ -69,11 +69,6 @@ shared_ptr<HISTORYITEM> const& CalculatorHistory::GetHistoryItem(_In_ unsigned i
return m_historyItems.at(uIdx);
}
CalculatorHistory::~CalculatorHistory(void)
{
ClearHistory();
}
void CalculatorHistory::ClearHistory()
{
m_historyItems.clear();

View File

@ -43,7 +43,6 @@ namespace CalculationManager
{
return m_maxHistorySize;
}
~CalculatorHistory(void);
private:
std::vector<std::shared_ptr<HISTORYITEM>> m_historyItems;