DSPRegisterView: Get rid of explicit memsets
This commit is contained in:
parent
3c822f2c55
commit
f935485158
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <cstring>
|
#include <array>
|
||||||
#include <wx/grid.h>
|
#include <wx/grid.h>
|
||||||
|
|
||||||
#include "Common/CommonTypes.h"
|
#include "Common/CommonTypes.h"
|
||||||
|
@ -12,18 +12,14 @@
|
||||||
class CDSPRegTable : public wxGridTableBase
|
class CDSPRegTable : public wxGridTableBase
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
u64 m_CachedCounter;
|
u64 m_CachedCounter = 0;
|
||||||
u16 m_CachedRegs[32];
|
std::array<u16, 32> m_CachedRegs{};
|
||||||
bool m_CachedRegHasChanged[32];
|
std::array<bool, 32> m_CachedRegHasChanged{};
|
||||||
|
|
||||||
DECLARE_NO_COPY_CLASS(CDSPRegTable);
|
DECLARE_NO_COPY_CLASS(CDSPRegTable);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
CDSPRegTable()
|
CDSPRegTable() = default;
|
||||||
{
|
|
||||||
memset(m_CachedRegs, 0, sizeof(m_CachedRegs));
|
|
||||||
memset(m_CachedRegHasChanged, 0, sizeof(m_CachedRegHasChanged));
|
|
||||||
}
|
|
||||||
|
|
||||||
int GetNumberCols() override { return 2; }
|
int GetNumberCols() override { return 2; }
|
||||||
int GetNumberRows() override { return 32; }
|
int GetNumberRows() override { return 32; }
|
||||||
|
|
Loading…
Reference in New Issue