From 212cf4c7914e9d50d72e2f541a1c7240efd67961 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 30 Sep 2016 00:37:08 -0400 Subject: [PATCH] RegisterView: Convert #define into a static constant in CRegTable --- Source/Core/DolphinWX/Debugger/RegisterView.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Source/Core/DolphinWX/Debugger/RegisterView.h b/Source/Core/DolphinWX/Debugger/RegisterView.h index 60d6e5c979..8589cd176a 100644 --- a/Source/Core/DolphinWX/Debugger/RegisterView.h +++ b/Source/Core/DolphinWX/Debugger/RegisterView.h @@ -5,6 +5,7 @@ #pragma once #include +#include #include #include @@ -26,8 +27,6 @@ // Interrupt Mask (PI) // Interrupt Cause(PI) -#define NUM_SPECIALS 14 - class CRegTable : public wxGridTableBase { public: @@ -52,6 +51,8 @@ public: void UpdateCachedRegs(); private: + static constexpr size_t NUM_SPECIALS = 14; + u32 m_CachedRegs[32]; u32 m_CachedSpecialRegs[NUM_SPECIALS]; u64 m_CachedFRegs[32][2];