From a1fb20e62002b8759e7c4d92a3f2ae007f5898d0 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 1 Aug 2026 13:51:12 +0200 Subject: [PATCH] Initialize uninitialized View members --- profiler/src/profiler/TracyView.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/profiler/src/profiler/TracyView.hpp b/profiler/src/profiler/TracyView.hpp index d3e28800..418a0853 100644 --- a/profiler/src/profiler/TracyView.hpp +++ b/profiler/src/profiler/TracyView.hpp @@ -274,7 +274,7 @@ private: constexpr static auto StartRangeMod = std::array { -1, 1, 1, -1 }; constexpr static auto EndRangeMod = std::array { -1, 1, -1, 1 }; - std::array m_scrollInertia; + std::array m_scrollInertia {}; }; struct ZoneColorData @@ -559,7 +559,7 @@ private: KeyboardNavigation m_kbNavCtrl; const ZoneEvent* m_zoneInfoWindow = nullptr; - const ZoneEvent* m_zoneHighlight; + const ZoneEvent* m_zoneHighlight = nullptr; DecayValue m_zoneSrcLocHighlight = 0; LockHighlight m_lockHighlight { -1 }; LockHighlight m_nextLockHighlight; @@ -567,7 +567,7 @@ private: DecayValue m_lockHoverHighlight = InvalidId; DecayValue m_msgToFocus = nullptr; const GpuEvent* m_gpuInfoWindow = nullptr; - const GpuEvent* m_gpuHighlight; + const GpuEvent* m_gpuHighlight = nullptr; uint64_t m_gpuInfoWindowThread; CallstackView m_callstackView = {}; int64_t m_memoryAllocInfoWindow = -1; @@ -699,7 +699,7 @@ private: const char* m_sourceViewFile; bool m_uarchSet = false; - float m_rootWidth, m_rootHeight; + float m_rootWidth = 0, m_rootHeight = 0; SetTitleCallback m_stcb; bool m_titleSet = false; SetScaleCallback m_sscb; @@ -743,7 +743,7 @@ private: bool m_reconnectRequested = false; bool m_firstFrame = true; std::chrono::time_point m_firstFrameTime; - float m_yDelta; + float m_yDelta = 0; std::vector m_sourceSubstitutions; bool m_sourceRegexValid = true;