From 8b29b09f24e492a70e74232e4039e2f2ef4dd970 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 7 Oct 2016 09:07:41 -0400 Subject: [PATCH] DSPLLE: in-class initialize variables --- Source/Core/Core/HW/DSPLLE/DSPLLE.cpp | 8 ++------ Source/Core/Core/HW/DSPLLE/DSPLLE.h | 4 ++-- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/Source/Core/Core/HW/DSPLLE/DSPLLE.cpp b/Source/Core/Core/HW/DSPLLE/DSPLLE.cpp index 244d6cdfed..f196955a15 100644 --- a/Source/Core/Core/HW/DSPLLE/DSPLLE.cpp +++ b/Source/Core/Core/HW/DSPLLE/DSPLLE.cpp @@ -28,16 +28,12 @@ #include "Core/Movie.h" #include "Core/NetPlayProto.h" -DSPLLE::DSPLLE() - : m_hDSPThread(), m_csDSPThreadActive(), m_bDSPThread(false), m_bIsRunning(false), - m_cycle_count(0) -{ -} - static Common::Event dspEvent; static Common::Event ppcEvent; static bool requestDisableThread; +DSPLLE::DSPLLE() = default; + void DSPLLE::DoState(PointerWrap& p) { bool is_hle = false; diff --git a/Source/Core/Core/HW/DSPLLE/DSPLLE.h b/Source/Core/Core/HW/DSPLLE/DSPLLE.h index e7a80603a5..b45e5a8071 100644 --- a/Source/Core/Core/HW/DSPLLE/DSPLLE.h +++ b/Source/Core/Core/HW/DSPLLE/DSPLLE.h @@ -39,7 +39,7 @@ private: std::thread m_hDSPThread; std::mutex m_csDSPThreadActive; - bool m_bDSPThread; + bool m_bDSPThread = false; Common::Flag m_bIsRunning; - std::atomic m_cycle_count; + std::atomic m_cycle_count{}; };