summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon
diff options
context:
space:
mode:
authorLéo Lam <leolino.lam@gmail.com>2018-04-02 10:37:07 +0200
committerGitHub <noreply@github.com>2018-04-02 10:37:07 +0200
commit80525cfd4e08eef14e0812a4cc15fa9ed0de3523 (patch)
tree51fb0473db5e530f62072dc671ad3d28356aa02a /Source/Core/VideoCommon
parent9d1c4401e5cbecf32b16b2b64ebc4715d5d4b15c (diff)
parent672665dec001edae90fd1dcfdc94a0a54585c4bf (diff)
Merge pull request #6584 from lioncash/async-init
AsyncRequests: In-class initialize class members
Diffstat (limited to 'Source/Core/VideoCommon')
-rw-r--r--Source/Core/VideoCommon/AsyncRequests.cpp4
-rw-r--r--Source/Core/VideoCommon/AsyncRequests.h6
2 files changed, 4 insertions, 6 deletions
diff --git a/Source/Core/VideoCommon/AsyncRequests.cpp b/Source/Core/VideoCommon/AsyncRequests.cpp
index f41354730d..cab79c8bc2 100644
--- a/Source/Core/VideoCommon/AsyncRequests.cpp
+++ b/Source/Core/VideoCommon/AsyncRequests.cpp
@@ -12,9 +12,7 @@
AsyncRequests AsyncRequests::s_singleton;
-AsyncRequests::AsyncRequests() : m_enable(false), m_passthrough(true)
-{
-}
+AsyncRequests::AsyncRequests() = default;
void AsyncRequests::PullEventsInternal()
{
diff --git a/Source/Core/VideoCommon/AsyncRequests.h b/Source/Core/VideoCommon/AsyncRequests.h
index c898c86c62..4c22d388e3 100644
--- a/Source/Core/VideoCommon/AsyncRequests.h
+++ b/Source/Core/VideoCommon/AsyncRequests.h
@@ -90,9 +90,9 @@ private:
std::mutex m_mutex;
std::condition_variable m_cond;
- bool m_wake_me_up_again;
- bool m_enable;
- bool m_passthrough;
+ bool m_wake_me_up_again = false;
+ bool m_enable = false;
+ bool m_passthrough = true;
std::vector<EfbPokeData> m_merged_efb_pokes;
};