RegisterView: Convert #define into a static constant in CRegTable

This commit is contained in:
Lioncash 2016-09-30 00:37:08 -04:00
parent d080b0e8a5
commit 212cf4c791
1 changed files with 3 additions and 2 deletions

View File

@ -5,6 +5,7 @@
#pragma once
#include <array>
#include <cstddef>
#include <cstring>
#include <wx/grid.h>
@ -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];