diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 1f7cba7c..425134c5 100755 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -600,11 +600,11 @@ void View::DrawFrames() idx += group; } - auto zitbegin = std::lower_bound( m_frames.begin(), m_frames.end(), m_zvStart ); - auto zitend = std::upper_bound( m_frames.begin(), m_frames.end(), m_zvEnd ); + const auto zitbegin = std::lower_bound( m_frames.begin(), m_frames.end(), m_zvStart ); + const auto zitend = std::upper_bound( m_frames.begin(), m_frames.end(), m_zvEnd ); - auto zbegin = (int)std::distance( m_frames.begin(), zitbegin ); - auto zend = (int)std::distance( m_frames.begin(), zitend ); + const auto zbegin = (int)std::distance( m_frames.begin(), zitbegin ); + const auto zend = (int)std::distance( m_frames.begin(), zitend ); if( zend > m_frameStart && zbegin < m_frameStart + onScreen * group ) {