diff options
| author | 2016-04-13 19:48:03 -0400 | |
|---|---|---|
| committer | 2016-04-13 20:17:24 -0400 | |
| commit | 5f51622e9de0483519f47c749888fe7d5b120c79 (patch) | |
| tree | 69ccb0da7b4176b24bcc576c13ed1e58caadf885 /src/common/file_util.cpp | |
| parent | file_util: const qualify IOFile's Tell and GetSize functions (diff) | |
| download | yuzu-5f51622e9de0483519f47c749888fe7d5b120c79.tar.gz yuzu-5f51622e9de0483519f47c749888fe7d5b120c79.tar.xz yuzu-5f51622e9de0483519f47c749888fe7d5b120c79.zip | |
file_util: In-class initialize data members
Diffstat (limited to 'src/common/file_util.cpp')
| -rw-r--r-- | src/common/file_util.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/common/file_util.cpp b/src/common/file_util.cpp index 7d96d04d9..53700c865 100644 --- a/src/common/file_util.cpp +++ b/src/common/file_util.cpp | |||
| @@ -876,11 +876,10 @@ void SplitFilename83(const std::string& filename, std::array<char, 9>& short_nam | |||
| 876 | } | 876 | } |
| 877 | 877 | ||
| 878 | IOFile::IOFile() | 878 | IOFile::IOFile() |
| 879 | : m_file(nullptr), m_good(true) | 879 | { |
| 880 | {} | 880 | } |
| 881 | 881 | ||
| 882 | IOFile::IOFile(const std::string& filename, const char openmode[]) | 882 | IOFile::IOFile(const std::string& filename, const char openmode[]) |
| 883 | : m_file(nullptr), m_good(true) | ||
| 884 | { | 883 | { |
| 885 | Open(filename, openmode); | 884 | Open(filename, openmode); |
| 886 | } | 885 | } |
| @@ -891,7 +890,6 @@ IOFile::~IOFile() | |||
| 891 | } | 890 | } |
| 892 | 891 | ||
| 893 | IOFile::IOFile(IOFile&& other) | 892 | IOFile::IOFile(IOFile&& other) |
| 894 | : m_file(nullptr), m_good(true) | ||
| 895 | { | 893 | { |
| 896 | Swap(other); | 894 | Swap(other); |
| 897 | } | 895 | } |