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