Updating CalculatorHistory to use a default destructor. (#723)
Its memory will be cleaned up by std::vector's destructor.
This commit is contained in:
parent
bfa5f81ef6
commit
f6a061c486
@ -69,11 +69,6 @@ shared_ptr<HISTORYITEM> const& CalculatorHistory::GetHistoryItem(_In_ unsigned i
|
|||||||
return m_historyItems.at(uIdx);
|
return m_historyItems.at(uIdx);
|
||||||
}
|
}
|
||||||
|
|
||||||
CalculatorHistory::~CalculatorHistory(void)
|
|
||||||
{
|
|
||||||
ClearHistory();
|
|
||||||
}
|
|
||||||
|
|
||||||
void CalculatorHistory::ClearHistory()
|
void CalculatorHistory::ClearHistory()
|
||||||
{
|
{
|
||||||
m_historyItems.clear();
|
m_historyItems.clear();
|
||||||
|
@ -43,7 +43,6 @@ namespace CalculationManager
|
|||||||
{
|
{
|
||||||
return m_maxHistorySize;
|
return m_maxHistorySize;
|
||||||
}
|
}
|
||||||
~CalculatorHistory(void);
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::vector<std::shared_ptr<HISTORYITEM>> m_historyItems;
|
std::vector<std::shared_ptr<HISTORYITEM>> m_historyItems;
|
||||||
|
Loading…
Reference in New Issue
Block a user