MemcardManager: Convert C arrays to std::array

This commit is contained in:
Lioncash 2017-02-03 11:15:07 -05:00
parent a3ba169e7d
commit 9d523f52f2

View File

@ -28,23 +28,23 @@ public:
private: private:
DECLARE_EVENT_TABLE(); DECLARE_EVENT_TABLE();
int page[2]; std::array<int, 2> page;
int itemsPerPage; int itemsPerPage;
int maxPages; int maxPages;
std::string DefaultMemcard[2]; std::array<std::string, 2> DefaultMemcard;
std::string DefaultIOPath; std::string DefaultIOPath;
IniFile MemcardManagerIni; IniFile MemcardManagerIni;
IniFile::Section* iniMemcardSection; IniFile::Section* iniMemcardSection;
wxButton* m_CopyFrom[2]; std::array<wxButton*, 2> m_CopyFrom;
wxButton* m_SaveImport[2]; std::array<wxButton*, 2> m_SaveImport;
wxButton* m_SaveExport[2]; std::array<wxButton*, 2> m_SaveExport;
wxButton* m_Delete[2]; std::array<wxButton*, 2> m_Delete;
wxButton* m_NextPage[2]; std::array<wxButton*, 2> m_NextPage;
wxButton* m_PrevPage[2]; std::array<wxButton*, 2> m_PrevPage;
wxButton* m_ConvertToGci; wxButton* m_ConvertToGci;
wxFilePickerCtrl* m_MemcardPath[2]; std::array<wxFilePickerCtrl*, 2> m_MemcardPath;
wxStaticText* t_Status[2]; std::array<wxStaticText*, 2> t_Status;
enum enum
{ {
@ -112,7 +112,7 @@ private:
{ {
bool twoCardsLoaded; bool twoCardsLoaded;
bool usePages; bool usePages;
bool column[NUMBER_OF_COLUMN + 1]; std::array<bool, NUMBER_OF_COLUMN + 1> column;
} mcmSettings; } mcmSettings;
class CMemcardListCtrl : public wxListCtrl class CMemcardListCtrl : public wxListCtrl
@ -134,5 +134,5 @@ private:
}; };
wxSize m_image_list_size; wxSize m_image_list_size;
CMemcardListCtrl* m_MemcardList[2]; std::array<CMemcardListCtrl*, 2> m_MemcardList;
}; };