1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Fix coding style issues

This commit is contained in:
Lectem 2023-02-27 22:39:20 +01:00
parent 42ded3204b
commit aea1f4e36b

View File

@ -636,7 +636,7 @@ int View::DrawZoneLevel( const V& vec, bool hover, double pxns, int64_t nspx, co
{ {
auto& ev = a(*it); auto& ev = a(*it);
const auto end = m_worker.GetZoneEnd( ev ); const auto end = m_worker.GetZoneEnd( ev );
const auto zsz = std::max( (end - ev.Start()) * pxns, pxns * 0.5 ); const auto zsz = std::max( ( end - ev.Start() ) * pxns, pxns * 0.5 );
if( zsz < MinVisSize ) if( zsz < MinVisSize )
{ {
const auto MinVisNs = MinVisSize * nspx; const auto MinVisNs = MinVisSize * nspx;
@ -653,13 +653,13 @@ int View::DrawZoneLevel( const V& vec, bool hover, double pxns, int64_t nspx, co
num += std::distance( prevIt, it ); num += std::distance( prevIt, it );
if( it == zitend ) break; if( it == zitend ) break;
const auto nend = m_worker.GetZoneEnd( a(*it) ); const auto nend = m_worker.GetZoneEnd( a(*it) );
if(nend - lastZoneInGroupStart >= MinVisNs * 2 ) break; if( nend - lastZoneInGroupStart >= MinVisNs * 2 ) break;
lastZoneInGroupStart = a(*it).Start(); lastZoneInGroupStart = a(*it).Start();
nextTime = nend + nspx; nextTime = nend + nspx;
} }
auto lastZoneInGroupIt = it; auto lastZoneInGroupIt = it;
lastZoneInGroupIt--; lastZoneInGroupIt--;
auto rend = m_worker.GetZoneEnd(a(*lastZoneInGroupIt)); auto rend = m_worker.GetZoneEnd( a(*lastZoneInGroupIt) );
auto px1ns = rend - m_vd.zvStart; auto px1ns = rend - m_vd.zvStart;
const auto px1 = px1ns * pxns; const auto px1 = px1ns * pxns;