From c06f7978ac2a2f8a45fa9e856ef7e2028383ef1b Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 10 Dec 2017 20:11:11 -0500 Subject: [PATCH] bootmanager: In-class initialize EmuThread's boolean member variables Trims down the initializer list a little. --- src/citra_qt/bootmanager.cpp | 3 +-- src/citra_qt/bootmanager.h | 6 +++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/citra_qt/bootmanager.cpp b/src/citra_qt/bootmanager.cpp index 11f9d174cf..a5ab0958b3 100644 --- a/src/citra_qt/bootmanager.cpp +++ b/src/citra_qt/bootmanager.cpp @@ -20,8 +20,7 @@ #include "input_common/motion_emu.h" #include "network/network.h" -EmuThread::EmuThread(GRenderWindow* render_window) - : exec_step(false), running(false), stop_run(false), render_window(render_window) {} +EmuThread::EmuThread(GRenderWindow* render_window) : render_window(render_window) {} void EmuThread::run() { render_window->MakeCurrent(); diff --git a/src/citra_qt/bootmanager.h b/src/citra_qt/bootmanager.h index 6974edcbb0..d1574c2785 100644 --- a/src/citra_qt/bootmanager.h +++ b/src/citra_qt/bootmanager.h @@ -71,9 +71,9 @@ public: }; private: - bool exec_step; - bool running; - std::atomic stop_run; + bool exec_step = false; + bool running = false; + std::atomic stop_run{false}; std::mutex running_mutex; std::condition_variable running_cv;