Initialize uninitialized View members

This commit is contained in:
Bartosz Taudul
2026-08-01 13:51:12 +02:00
parent 9e163ad6b9
commit a1fb20e620

View File

@@ -274,7 +274,7 @@ private:
constexpr static auto StartRangeMod = std::array<int, 4> { -1, 1, 1, -1 };
constexpr static auto EndRangeMod = std::array<int, 4> { -1, 1, -1, 1 };
std::array<float, 4> m_scrollInertia;
std::array<float, 4> 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<int16_t> m_zoneSrcLocHighlight = 0;
LockHighlight m_lockHighlight { -1 };
LockHighlight m_nextLockHighlight;
@@ -567,7 +567,7 @@ private:
DecayValue<uint32_t> m_lockHoverHighlight = InvalidId;
DecayValue<const MessageData*> 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<std::chrono::high_resolution_clock> m_firstFrameTime;
float m_yDelta;
float m_yDelta = 0;
std::vector<SourceRegex> m_sourceSubstitutions;
bool m_sourceRegexValid = true;