diff options
author | Tom Rondeau | 2011-10-15 16:32:35 -0400 |
---|---|---|
committer | Tom Rondeau | 2011-10-15 16:32:35 -0400 |
commit | 32ef4974395913878f252434c21a63a259bb9b97 (patch) | |
tree | 419514e20012b996053d612542afd1996924ecc9 /gr-qtgui/lib | |
parent | 0d72c2c86f762279f944c576904d5c6af4895a7b (diff) | |
download | gnuradio-32ef4974395913878f252434c21a63a259bb9b97.tar.gz gnuradio-32ef4974395913878f252434c21a63a259bb9b97.tar.bz2 gnuradio-32ef4974395913878f252434c21a63a259bb9b97.zip |
qtgui: avoids a simple warning.
Diffstat (limited to 'gr-qtgui/lib')
-rw-r--r-- | gr-qtgui/lib/spectrumdisplayform.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gr-qtgui/lib/spectrumdisplayform.cc b/gr-qtgui/lib/spectrumdisplayform.cc index 0e8594029..d3ca01483 100644 --- a/gr-qtgui/lib/spectrumdisplayform.cc +++ b/gr-qtgui/lib/spectrumdisplayform.cc @@ -466,7 +466,8 @@ SpectrumDisplayForm::_AverageHistory(const double* newBuffer) if(_historyEntryCount > static_cast<int>(_historyVector->size())){ _historyEntryCount = _historyVector->size(); } - _historyEntry = (++_historyEntry)%_historyVector->size(); + _historyEntry += 1; + _historyEntry = _historyEntry % _historyVector->size(); // Total up and then average the values double sum; |