formatting

This commit is contained in:
Kristoffer 2023-05-02 11:25:42 +02:00
parent 73c83906b6
commit 3285c8c960

View File

@ -543,7 +543,7 @@ void View::DrawFindZone()
{ {
auto& ev = zones[i]; auto& ev = zones[i];
if( ev.Zone()->End() > rangeMax || ev.Zone()->Start() < rangeMin ) continue; if( ev.Zone()->End() > rangeMax || ev.Zone()->Start() < rangeMin ) continue;
if( m_filteredZones.contains(&ev) ) continue; if( m_filteredZones.contains( &ev ) ) continue;
if( selGroup == GetSelectionTarget( ev, groupBy ) ) if( selGroup == GetSelectionTarget( ev, groupBy ) )
{ {
const auto ctx = m_worker.GetContextSwitchData( m_worker.DecompressThread( zones[i].Thread() ) ); const auto ctx = m_worker.GetContextSwitchData( m_worker.DecompressThread( zones[i].Thread() ) );
@ -561,7 +561,7 @@ void View::DrawFindZone()
for( size_t i=m_findZone.selSortNum; i<m_findZone.sortedNum; i++ ) for( size_t i=m_findZone.selSortNum; i<m_findZone.sortedNum; i++ )
{ {
auto& ev = zones[i]; auto& ev = zones[i];
if( m_filteredZones.contains(&ev) ) continue; if( m_filteredZones.contains( &ev ) ) continue;
if( selGroup == GetSelectionTarget( ev, groupBy ) ) if( selGroup == GetSelectionTarget( ev, groupBy ) )
{ {
const auto ctx = m_worker.GetContextSwitchData( m_worker.DecompressThread( zones[i].Thread() ) ); const auto ctx = m_worker.GetContextSwitchData( m_worker.DecompressThread( zones[i].Thread() ) );
@ -583,7 +583,7 @@ void View::DrawFindZone()
{ {
auto& ev = zones[i]; auto& ev = zones[i];
if( ev.Zone()->End() > rangeMax || ev.Zone()->Start() < rangeMin ) continue; if( ev.Zone()->End() > rangeMax || ev.Zone()->Start() < rangeMin ) continue;
if( m_filteredZones.contains(&ev) ) continue; if( m_filteredZones.contains( &ev ) ) continue;
if( selGroup == GetSelectionTarget( ev, groupBy ) ) if( selGroup == GetSelectionTarget( ev, groupBy ) )
{ {
const auto t = ev.Zone()->End() - ev.Zone()->Start() - GetZoneChildTimeFast( *ev.Zone() ); const auto t = ev.Zone()->End() - ev.Zone()->Start() - GetZoneChildTimeFast( *ev.Zone() );
@ -598,7 +598,7 @@ void View::DrawFindZone()
for( size_t i=m_findZone.selSortNum; i<m_findZone.sortedNum; i++ ) for( size_t i=m_findZone.selSortNum; i<m_findZone.sortedNum; i++ )
{ {
auto& ev = zones[i]; auto& ev = zones[i];
if( m_filteredZones.contains(&ev) ) continue; if( m_filteredZones.contains( &ev ) ) continue;
if( selGroup == GetSelectionTarget( ev, groupBy ) ) if( selGroup == GetSelectionTarget( ev, groupBy ) )
{ {
const auto t = ev.Zone()->End() - ev.Zone()->Start() - GetZoneChildTimeFast( *ev.Zone() ); const auto t = ev.Zone()->End() - ev.Zone()->Start() - GetZoneChildTimeFast( *ev.Zone() );
@ -617,7 +617,7 @@ void View::DrawFindZone()
{ {
auto& ev = zones[i]; auto& ev = zones[i];
if( ev.Zone()->End() > rangeMax || ev.Zone()->Start() < rangeMin ) continue; if( ev.Zone()->End() > rangeMax || ev.Zone()->Start() < rangeMin ) continue;
if( m_filteredZones.contains(&ev) ) continue; if( m_filteredZones.contains( &ev ) ) continue;
if( selGroup == GetSelectionTarget( ev, groupBy ) ) if( selGroup == GetSelectionTarget( ev, groupBy ) )
{ {
const auto t = ev.Zone()->End() - ev.Zone()->Start(); const auto t = ev.Zone()->End() - ev.Zone()->Start();
@ -632,7 +632,7 @@ void View::DrawFindZone()
for( size_t i=m_findZone.selSortNum; i<m_findZone.sortedNum; i++ ) for( size_t i=m_findZone.selSortNum; i<m_findZone.sortedNum; i++ )
{ {
auto& ev = zones[i]; auto& ev = zones[i];
if( m_filteredZones.contains(&ev) ) continue; if( m_filteredZones.contains( &ev ) ) continue;
if( selGroup == GetSelectionTarget( ev, groupBy ) ) if( selGroup == GetSelectionTarget( ev, groupBy ) )
{ {
const auto t = ev.Zone()->End() - ev.Zone()->Start(); const auto t = ev.Zone()->End() - ev.Zone()->Start();
@ -1467,7 +1467,7 @@ void View::DrawFindZone()
} }
if( !keep ) if( !keep )
{ {
m_filteredZones.insert(&ev); m_filteredZones.insert( &ev );
zptr++; zptr++;
continue; continue;
} }