From f57cac9042ee618e3038a7c14210ade17c3c72a6 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 14 Mar 2019 01:15:19 +0100 Subject: [PATCH] Initialize SourceLocationZones in-place. --- server/TracyWorker.hpp | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/server/TracyWorker.hpp b/server/TracyWorker.hpp index 0ea31182..9c2c1123 100644 --- a/server/TracyWorker.hpp +++ b/server/TracyWorker.hpp @@ -82,22 +82,13 @@ public: private: struct SourceLocationZones { - SourceLocationZones() - : min( std::numeric_limits::max() ) - , max( std::numeric_limits::min() ) - , total( 0 ) - , selfMin( std::numeric_limits::max() ) - , selfMax( std::numeric_limits::min() ) - , selfTotal( 0 ) - {} - Vector zones; - int64_t min; - int64_t max; - int64_t total; - int64_t selfMin; - int64_t selfMax; - int64_t selfTotal; + int64_t min = std::numeric_limits::max(); + int64_t max = std::numeric_limits::min(); + int64_t total = 0; + int64_t selfMin = std::numeric_limits::max(); + int64_t selfMax = std::numeric_limits::min(); + int64_t selfTotal = 0; }; struct CallstackFrameIdHash