Moving average: fixed initialization

pull/177/head
f4exb 2018-04-27 20:40:17 +02:00
rodzic 8d565f8187
commit 33e171bd9b
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -8,7 +8,7 @@
template<typename Type> class MovingAverage {
public:
MovingAverage(int historySize, Type initial)
MovingAverage(int historySize, Type initial) : m_index(0)
{
resize(historySize, initial);
}