From 2723144678a3be6c3f28853ccec6a13bc2569555 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 11 Jun 2020 12:27:17 +0200 Subject: [PATCH] Don't create empty ghost children vectors. --- server/TracyWorker.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/TracyWorker.cpp b/server/TracyWorker.cpp index 033ab96c..d41af209 100644 --- a/server/TracyWorker.cpp +++ b/server/TracyWorker.cpp @@ -4050,7 +4050,7 @@ int Worker::AddGhostZone( const VarArray& cs, Vectorempty() && vec->back().end.Val() > (int64_t)t ) { auto tmp = vec; - while( tmp->size() > 0 ) + for(;;) { auto& back = tmp->back(); back.end.SetVal( t ); @@ -4071,7 +4071,7 @@ int Worker::AddGhostZone( const VarArray& cs, Vector