From 1e16cb9fa24c2e51a8f4ab63d51c1cfecdcaede9 Mon Sep 17 00:00:00 2001 From: Tom Atkinson Date: Mon, 11 Mar 2024 21:45:13 +0000 Subject: [PATCH] qa --- .../core/include/core/util/profiling.hpp | 21 ++++++++----------- framework/hpp_gui.h | 2 +- 2 files changed, 10 insertions(+), 13 deletions(-) diff --git a/components/core/include/core/util/profiling.hpp b/components/core/include/core/util/profiling.hpp index e9a45a7f6..4262cb811 100644 --- a/components/core/include/core/util/profiling.hpp +++ b/components/core/include/core/util/profiling.hpp @@ -25,25 +25,22 @@ #include "core/util/error.hpp" #ifdef TRACY_ENABLE -#include +# include #endif - - - #ifdef TRACY_ENABLE // malloc and free are used by Tracy to provide memory profiling void *operator new(size_t count); void operator delete(void *ptr) noexcept; // Tracy a scope -#define PROFILE_SCOPE(name) ZoneScopedN(name) +# define PROFILE_SCOPE(name) ZoneScopedN(name) // Trace a function -#define PROFILE_FUNCTION() ZoneScoped +# define PROFILE_FUNCTION() ZoneScoped #else -#define PROFILE_SCOPE(name) -#define PROFILE_FUNCTION() +# define PROFILE_SCOPE(name) +# define PROFILE_FUNCTION() #endif // The type of plot to use @@ -116,10 +113,10 @@ class Plot private: static void update_tracy_plot(const char *name, T value) { - #ifdef TRACY_ENABLE - TracyPlot(name, value); - TracyPlotConfig(name, TO_TRACY_PLOT_FORMAT(PT), true, true, 0); - #endif +#ifdef TRACY_ENABLE + TracyPlot(name, value); + TracyPlotConfig(name, TO_TRACY_PLOT_FORMAT(PT), true, true, 0); +#endif } static Plot *get_instance() diff --git a/framework/hpp_gui.h b/framework/hpp_gui.h index d33c9bb20..2f309467e 100644 --- a/framework/hpp_gui.h +++ b/framework/hpp_gui.h @@ -62,7 +62,7 @@ struct HPPFont } std::vector data; - ImFont *handle = nullptr; + ImFont *handle = nullptr; std::string name; float size = 0.0f; };