diff --git a/src/libromdata/Console/GameCube.cpp b/src/libromdata/Console/GameCube.cpp index 9eee833cd..1cdf5bed6 100644 --- a/src/libromdata/Console/GameCube.cpp +++ b/src/libromdata/Console/GameCube.cpp @@ -1425,10 +1425,10 @@ int GameCube::loadFieldData(void) be32_to_cpu(tmdHeader->title_id.lo))); // Access rights. - vector *const v_access_rights_hdr = new vector(); - v_access_rights_hdr->reserve(2); - v_access_rights_hdr->emplace_back("AHBPROT"); - v_access_rights_hdr->emplace_back(C_("Wii", "DVD Video")); + vector *const v_access_rights_hdr = new vector({ + "AHBPROT", + C_("Wii", "DVD Video") + }); d->fields.addField_bitfield(C_("Wii", "Access Rights"), v_access_rights_hdr, 0, be32_to_cpu(tmdHeader->access_rights)); diff --git a/src/libromdata/Console/WiiTMD.cpp b/src/libromdata/Console/WiiTMD.cpp index f8084c75e..9ef3970d3 100644 --- a/src/libromdata/Console/WiiTMD.cpp +++ b/src/libromdata/Console/WiiTMD.cpp @@ -434,10 +434,10 @@ int WiiTMD::loadFieldData(void) // Access rights if (sysID == NINTENDO_SYSID_RVL || sysID == NINTENDO_SYSID_WUP) { - vector *const v_access_rights_hdr = new vector(); - v_access_rights_hdr->reserve(2); - v_access_rights_hdr->emplace_back("AHBPROT"); - v_access_rights_hdr->emplace_back(C_("Wii", "DVD Video")); + vector *const v_access_rights_hdr = new vector({ + "AHBPROT", + C_("Wii", "DVD Video") + }); d->fields.addField_bitfield(C_("Wii", "Access Rights"), v_access_rights_hdr, 0, be32_to_cpu(tmdHeader->access_rights)); } diff --git a/src/libromdata/Console/WiiWAD.cpp b/src/libromdata/Console/WiiWAD.cpp index d88d07425..a4abbb842 100644 --- a/src/libromdata/Console/WiiWAD.cpp +++ b/src/libromdata/Console/WiiWAD.cpp @@ -978,10 +978,10 @@ int WiiWAD::loadFieldData(void) } // Access rights. - vector *const v_access_rights_hdr = new vector(); - v_access_rights_hdr->reserve(2); - v_access_rights_hdr->emplace_back("AHBPROT"); - v_access_rights_hdr->emplace_back(C_("Wii", "DVD Video")); + vector *const v_access_rights_hdr = new vector({ + "AHBPROT", + C_("Wii", "DVD Video") + }); d->fields.addField_bitfield(C_("Wii", "Access Rights"), v_access_rights_hdr, 0, be32_to_cpu(tmdHeader->access_rights));