1
0
mirror of https://github.com/wolfpld/tracy synced 2025-05-02 21:53:52 +00:00

Const variables.

This commit is contained in:
Bartosz Taudul 2017-09-20 22:35:10 +02:00
parent ef317fa2be
commit ee273934e3

View File

@ -600,11 +600,11 @@ void View::DrawFrames()
idx += group; idx += group;
} }
auto zitbegin = std::lower_bound( m_frames.begin(), m_frames.end(), m_zvStart ); const 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 zitend = std::upper_bound( m_frames.begin(), m_frames.end(), m_zvEnd );
auto zbegin = (int)std::distance( m_frames.begin(), zitbegin ); const auto zbegin = (int)std::distance( m_frames.begin(), zitbegin );
auto zend = (int)std::distance( m_frames.begin(), zitend ); const auto zend = (int)std::distance( m_frames.begin(), zitend );
if( zend > m_frameStart && zbegin < m_frameStart + onScreen * group ) if( zend > m_frameStart && zbegin < m_frameStart + onScreen * group )
{ {