mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-22 14:13:30 -07:00
Update CalculatorHistory.h
This commit is contained in:
parent
382323d516
commit
5410e9a1be
1 changed files with 2 additions and 2 deletions
|
@ -33,13 +33,13 @@ namespace CalculationManager
|
||||||
void ClearHistory();
|
void ClearHistory();
|
||||||
unsigned int AddItem(_In_ std::shared_ptr<HISTORYITEM> const& spHistoryItem);
|
unsigned int AddItem(_In_ std::shared_ptr<HISTORYITEM> const& spHistoryItem);
|
||||||
bool RemoveItem(unsigned int uIdx);
|
bool RemoveItem(unsigned int uIdx);
|
||||||
size_t MaxHistorySize() const
|
unsigned int MaxHistorySize() const
|
||||||
{
|
{
|
||||||
return m_maxHistorySize;
|
return m_maxHistorySize;
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::vector<std::shared_ptr<HISTORYITEM>> m_historyItems;
|
std::vector<std::shared_ptr<HISTORYITEM>> m_historyItems;
|
||||||
const size_t m_maxHistorySize;
|
const unsigned int m_maxHistorySize;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue