From 24f3f437aa4608f54c31abc3dc7a43e5140f9191 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Wed, 17 Apr 2019 16:44:47 +0200 Subject: [PATCH] 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. --- src/CalcManager/CalculatorHistory.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/CalcManager/CalculatorHistory.h b/src/CalcManager/CalculatorHistory.h index ea87f857..610e809c 100644 --- a/src/CalcManager/CalculatorHistory.h +++ b/src/CalcManager/CalculatorHistory.h @@ -32,12 +32,12 @@ namespace CalculationManager public: CalculatorHistory(const size_t maxSize); - unsigned int AddToHistory(_In_ std::shared_ptr>> const &spTokens, _In_ std::shared_ptr>> const &spCommands, std::wstring_view result); + unsigned int AddToHistory(_In_ std::shared_ptr>> const &spTokens, _In_ std::shared_ptr>> const &spCommands, _In_ std::wstring_view result); std::vector> const& GetHistory(); - std::shared_ptr const& GetHistoryItem(unsigned int uIdx); + std::shared_ptr const& GetHistoryItem(_In_ unsigned int uIdx); void ClearHistory(); unsigned int AddItem(_In_ std::shared_ptr const &spHistoryItem); - bool RemoveItem(unsigned int uIdx); + bool RemoveItem(_In_ unsigned int uIdx); size_t MaxHistorySize() const { return m_maxHistorySize; } ~CalculatorHistory(void);