UICommon/GameFile: Remove unnecessary initializers

All of the standardized types have constructors that will automatically
initialize them, so the explicit initializers are redundant.
This commit is contained in:
Lioncash
2019-05-28 07:00:04 -04:00
parent 56faf750be
commit 27ecb93b32

View File

@ -23,7 +23,7 @@ namespace UICommon
{ {
struct GameBanner struct GameBanner
{ {
std::vector<u32> buffer{}; std::vector<u32> buffer;
u32 width{}; u32 width{};
u32 height{}; u32 height{};
bool empty() const { return buffer.empty(); } bool empty() const { return buffer.empty(); }
@ -32,7 +32,7 @@ struct GameBanner
struct GameCover struct GameCover
{ {
std::vector<u8> buffer{}; std::vector<u8> buffer;
bool empty() const { return buffer.empty(); } bool empty() const { return buffer.empty(); }
void DoState(PointerWrap& p); void DoState(PointerWrap& p);
}; };
@ -109,22 +109,22 @@ private:
// CACHE_REVISION in GameFileCache.cpp is incremented. // CACHE_REVISION in GameFileCache.cpp is incremented.
bool m_valid{}; bool m_valid{};
std::string m_file_path{}; std::string m_file_path;
std::string m_file_name{}; std::string m_file_name;
u64 m_file_size{}; u64 m_file_size{};
u64 m_volume_size{}; u64 m_volume_size{};
std::map<DiscIO::Language, std::string> m_short_names{}; std::map<DiscIO::Language, std::string> m_short_names;
std::map<DiscIO::Language, std::string> m_long_names{}; std::map<DiscIO::Language, std::string> m_long_names;
std::map<DiscIO::Language, std::string> m_short_makers{}; std::map<DiscIO::Language, std::string> m_short_makers;
std::map<DiscIO::Language, std::string> m_long_makers{}; std::map<DiscIO::Language, std::string> m_long_makers;
std::map<DiscIO::Language, std::string> m_descriptions{}; std::map<DiscIO::Language, std::string> m_descriptions;
std::string m_internal_name{}; std::string m_internal_name;
std::string m_game_id{}; std::string m_game_id;
std::string m_gametdb_id{}; std::string m_gametdb_id;
u64 m_title_id{}; u64 m_title_id{};
std::string m_maker_id{}; std::string m_maker_id;
DiscIO::Region m_region{DiscIO::Region::Unknown}; DiscIO::Region m_region{DiscIO::Region::Unknown};
DiscIO::Country m_country{DiscIO::Country::Unknown}; DiscIO::Country m_country{DiscIO::Country::Unknown};
@ -132,7 +132,7 @@ private:
DiscIO::BlobType m_blob_type{}; DiscIO::BlobType m_blob_type{};
u16 m_revision{}; u16 m_revision{};
u8 m_disc_number{}; u8 m_disc_number{};
std::string m_apploader_date{}; std::string m_apploader_date;
GameBanner m_volume_banner{}; GameBanner m_volume_banner{};
GameBanner m_custom_banner{}; GameBanner m_custom_banner{};