From 27ecb93b327ae52847633e2f78b073f1115124ec Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 28 May 2019 07:00:04 -0400 Subject: [PATCH] UICommon/GameFile: Remove unnecessary initializers All of the standardized types have constructors that will automatically initialize them, so the explicit initializers are redundant. --- Source/Core/UICommon/GameFile.h | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/Source/Core/UICommon/GameFile.h b/Source/Core/UICommon/GameFile.h index 13086c5c33..aced331685 100644 --- a/Source/Core/UICommon/GameFile.h +++ b/Source/Core/UICommon/GameFile.h @@ -23,7 +23,7 @@ namespace UICommon { struct GameBanner { - std::vector buffer{}; + std::vector buffer; u32 width{}; u32 height{}; bool empty() const { return buffer.empty(); } @@ -32,7 +32,7 @@ struct GameBanner struct GameCover { - std::vector buffer{}; + std::vector buffer; bool empty() const { return buffer.empty(); } void DoState(PointerWrap& p); }; @@ -109,22 +109,22 @@ private: // CACHE_REVISION in GameFileCache.cpp is incremented. bool m_valid{}; - std::string m_file_path{}; - std::string m_file_name{}; + std::string m_file_path; + std::string m_file_name; u64 m_file_size{}; u64 m_volume_size{}; - std::map m_short_names{}; - std::map m_long_names{}; - std::map m_short_makers{}; - std::map m_long_makers{}; - std::map m_descriptions{}; - std::string m_internal_name{}; - std::string m_game_id{}; - std::string m_gametdb_id{}; + std::map m_short_names; + std::map m_long_names; + std::map m_short_makers; + std::map m_long_makers; + std::map m_descriptions; + std::string m_internal_name; + std::string m_game_id; + std::string m_gametdb_id; u64 m_title_id{}; - std::string m_maker_id{}; + std::string m_maker_id; DiscIO::Region m_region{DiscIO::Region::Unknown}; DiscIO::Country m_country{DiscIO::Country::Unknown}; @@ -132,7 +132,7 @@ private: DiscIO::BlobType m_blob_type{}; u16 m_revision{}; u8 m_disc_number{}; - std::string m_apploader_date{}; + std::string m_apploader_date; GameBanner m_volume_banner{}; GameBanner m_custom_banner{};