diff --git a/src/common/file_util.cpp b/src/common/file_util.cpp index 7418d0610..157796075 100644 --- a/src/common/file_util.cpp +++ b/src/common/file_util.cpp @@ -915,11 +915,11 @@ std::string SanitizePath(std::string_view path_, DirectorySeparator directory_se return std::string(RemoveTrailingSlash(path)); } -IOFile::IOFile() {} +IOFile::IOFile() = default; IOFile::IOFile(const std::string& filename, const char openmode[], int flags) : filename(filename), openmode(openmode), flags(flags) { - Open(); + void(Open()); } IOFile::~IOFile() {