From aea1f4e36b924aac99cbcce9f4e69974fb43e1a4 Mon Sep 17 00:00:00 2001 From: Lectem Date: Mon, 27 Feb 2023 22:39:20 +0100 Subject: [PATCH] Fix coding style issues --- server/TracyView_ZoneTimeline.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/TracyView_ZoneTimeline.cpp b/server/TracyView_ZoneTimeline.cpp index c2eb5525..044fc493 100644 --- a/server/TracyView_ZoneTimeline.cpp +++ b/server/TracyView_ZoneTimeline.cpp @@ -636,7 +636,7 @@ int View::DrawZoneLevel( const V& vec, bool hover, double pxns, int64_t nspx, co { auto& ev = a(*it); 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 ) { 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 ); if( it == zitend ) break; const auto nend = m_worker.GetZoneEnd( a(*it) ); - if(nend - lastZoneInGroupStart >= MinVisNs * 2 ) break; + if( nend - lastZoneInGroupStart >= MinVisNs * 2 ) break; lastZoneInGroupStart = a(*it).Start(); nextTime = nend + nspx; } auto lastZoneInGroupIt = it; lastZoneInGroupIt--; - auto rend = m_worker.GetZoneEnd(a(*lastZoneInGroupIt)); + auto rend = m_worker.GetZoneEnd( a(*lastZoneInGroupIt) ); auto px1ns = rend - m_vd.zvStart; const auto px1 = px1ns * pxns;