mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-30 21:30:04 +00:00 
			
		
		
		
	file_util: In-class initialize data members
This commit is contained in:
		
							parent
							
								
									655623ebb2
								
							
						
					
					
						commit
						5f51622e9d
					
				
					 2 changed files with 4 additions and 6 deletions
				
			
		|  | @ -876,11 +876,10 @@ void SplitFilename83(const std::string& filename, std::array<char, 9>& short_nam | |||
| } | ||||
| 
 | ||||
| IOFile::IOFile() | ||||
|     : m_file(nullptr), m_good(true) | ||||
| {} | ||||
| { | ||||
| } | ||||
| 
 | ||||
| IOFile::IOFile(const std::string& filename, const char openmode[]) | ||||
|     : m_file(nullptr), m_good(true) | ||||
| { | ||||
|     Open(filename, openmode); | ||||
| } | ||||
|  | @ -891,7 +890,6 @@ IOFile::~IOFile() | |||
| } | ||||
| 
 | ||||
| IOFile::IOFile(IOFile&& other) | ||||
|     : m_file(nullptr), m_good(true) | ||||
| { | ||||
|     Swap(other); | ||||
| } | ||||
|  |  | |||
|  | @ -256,8 +256,8 @@ public: | |||
|     void Clear() { m_good = true; std::clearerr(m_file); } | ||||
| 
 | ||||
| private: | ||||
|     std::FILE* m_file; | ||||
|     bool m_good; | ||||
|     std::FILE* m_file = nullptr; | ||||
|     bool m_good = true; | ||||
| }; | ||||
| 
 | ||||
| }  // namespace
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue