Skip to content

Commit

Permalink
UICommon/GameFile: Use in-class initializers where applicable
Browse files Browse the repository at this point in the history
Allows deduplicating code within the constructor initializer list.
  • Loading branch information
lioncash committed May 28, 2019
1 parent 800d875 commit 49ca314
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions Source/Core/UICommon/GameFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,7 @@ GameFile::LookupUsingConfigLanguage(const std::map<DiscIO::Language, std::string
return Lookup(GetConfigLanguage(), strings);
}

GameFile::GameFile(const std::string& path)
: m_file_path(path), m_region(DiscIO::Region::Unknown), m_country(DiscIO::Country::Unknown)
GameFile::GameFile(const std::string& path) : m_file_path(path)
{
{
std::string name, extension;
Expand Down
4 changes: 2 additions & 2 deletions Source/Core/UICommon/GameFile.h
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ class GameFile final
u64 m_title_id{};
std::string m_maker_id{};

DiscIO::Region m_region{};
DiscIO::Country m_country{};
DiscIO::Region m_region{DiscIO::Region::Unknown};
DiscIO::Country m_country{DiscIO::Country::Unknown};
DiscIO::Platform m_platform{};
DiscIO::BlobType m_blob_type{};
u16 m_revision{};
Expand Down

0 comments on commit 49ca314

Please sign in to comment.