diff --git a/src/CalcManager/CalculatorHistory.cpp b/src/CalcManager/CalculatorHistory.cpp index 886ff434..9eea1068 100644 --- a/src/CalcManager/CalculatorHistory.cpp +++ b/src/CalcManager/CalculatorHistory.cpp @@ -41,7 +41,8 @@ unsigned int CalculatorHistory::AddItem(_In_ shared_ptr const &spHi } m_historyItems.push_back(spHistoryItem); -unsigned int lastIndex = static_cast(m_historyItems.size() - 1); + unsigned int lastIndex = static_cast(m_historyItems.size() - 1); + return lastIndex; return lastIndex; }