From 780dffcb139d027ca85f1bfc0cd605432ec3bea4 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 21 Mar 2017 15:35:48 -0400 Subject: [PATCH] FifoDataFile: In-class initialize member variables where applicable --- Source/Core/Core/FifoPlayer/FifoDataFile.cpp | 8 ++------ Source/Core/Core/FifoPlayer/FifoDataFile.h | 4 ++-- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/Source/Core/Core/FifoPlayer/FifoDataFile.cpp b/Source/Core/Core/FifoPlayer/FifoDataFile.cpp index 231f8cb82d..5a1fd476a3 100644 --- a/Source/Core/Core/FifoPlayer/FifoDataFile.cpp +++ b/Source/Core/Core/FifoPlayer/FifoDataFile.cpp @@ -13,13 +13,9 @@ using namespace FifoFileStruct; -FifoDataFile::FifoDataFile() : m_Flags(0) -{ -} +FifoDataFile::FifoDataFile() = default; -FifoDataFile::~FifoDataFile() -{ -} +FifoDataFile::~FifoDataFile() = default; bool FifoDataFile::HasBrokenEFBCopies() const { diff --git a/Source/Core/Core/FifoPlayer/FifoDataFile.h b/Source/Core/Core/FifoPlayer/FifoDataFile.h index f3c8e92eb3..f57f2fcf4a 100644 --- a/Source/Core/Core/FifoPlayer/FifoDataFile.h +++ b/Source/Core/Core/FifoPlayer/FifoDataFile.h @@ -94,8 +94,8 @@ private: u32 m_XFRegs[XF_REGS_SIZE]; u8 m_TexMem[TEX_MEM_SIZE]; - u32 m_Flags; - u32 m_Version; + u32 m_Flags = 0; + u32 m_Version = 0; std::vector m_Frames; };