mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-21 05:43:10 -07:00
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
2 changed files with 0 additions and 6 deletions
|
@ -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();
|
||||
|
|
|
@ -43,7 +43,6 @@ namespace CalculationManager
|
|||
{
|
||||
return m_maxHistorySize;
|
||||
}
|
||||
~CalculatorHistory(void);
|
||||
|
||||
private:
|
||||
std::vector<std::shared_ptr<HISTORYITEM>> m_historyItems;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue