Fix _In_ attributes in CalculatorHistory

These parameters have _In_ attributes in the implementation, but not
in the header file, causing a warning in the static code analysis.
This commit is contained in:
Tobias Nießen 2019-04-17 16:44:47 +02:00
commit 24f3f437aa
No known key found for this signature in database
GPG key ID: 718207F8FD156B70

View file

@ -32,12 +32,12 @@ namespace CalculationManager
public:
CalculatorHistory(const size_t maxSize);
unsigned int AddToHistory(_In_ std::shared_ptr<CalculatorVector <std::pair<std::wstring, int>>> const &spTokens, _In_ std::shared_ptr<CalculatorVector<std::shared_ptr<IExpressionCommand>>> const &spCommands, std::wstring_view result);
unsigned int AddToHistory(_In_ std::shared_ptr<CalculatorVector <std::pair<std::wstring, int>>> const &spTokens, _In_ std::shared_ptr<CalculatorVector<std::shared_ptr<IExpressionCommand>>> const &spCommands, _In_ std::wstring_view result);
std::vector<std::shared_ptr<HISTORYITEM>> const& GetHistory();
std::shared_ptr<HISTORYITEM> const& GetHistoryItem(unsigned int uIdx);
std::shared_ptr<HISTORYITEM> const& GetHistoryItem(_In_ unsigned int uIdx);
void ClearHistory();
unsigned int AddItem(_In_ std::shared_ptr<HISTORYITEM> const &spHistoryItem);
bool RemoveItem(unsigned int uIdx);
bool RemoveItem(_In_ unsigned int uIdx);
size_t MaxHistorySize() const { return m_maxHistorySize; }
~CalculatorHistory(void);