From 5f51622e9de0483519f47c749888fe7d5b120c79 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 13 Apr 2016 19:48:03 -0400 Subject: file_util: In-class initialize data members --- src/common/file_util.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/common/file_util.h') diff --git a/src/common/file_util.h b/src/common/file_util.h index d520130ce..b54a9fb72 100644 --- a/src/common/file_util.h +++ b/src/common/file_util.h @@ -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 -- cgit v1.2.3