DSPRegisterView: Get rid of explicit memsets

This commit is contained in:
Lioncash 2016-10-06 12:25:28 -04:00
parent 3c822f2c55
commit f935485158
1 changed files with 5 additions and 9 deletions

View File

@ -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; }