From 2be3f1766f3869484fb486eb5b777ce72c1edd24 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 31 Jul 2020 00:58:59 +0200 Subject: [PATCH] Use constexpr instead of enum. --- client/TracyProfiler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/TracyProfiler.cpp b/client/TracyProfiler.cpp index d384ced0..e0fb4cd8 100644 --- a/client/TracyProfiler.cpp +++ b/client/TracyProfiler.cpp @@ -2607,7 +2607,7 @@ void Profiler::CalibrateTimer() void Profiler::CalibrateDelay() { - enum { Iterations = 50000 }; + constexpr int Iterations = 50000; auto mindiff = std::numeric_limits::max(); for( int i=0; i