Merge pull request #6584 from lioncash/async-init

AsyncRequests: In-class initialize class members
This commit is contained in:
Léo Lam 2018-04-02 10:37:07 +02:00 committed by GitHub
commit 80525cfd4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 6 deletions

View File

@ -12,9 +12,7 @@
AsyncRequests AsyncRequests::s_singleton;
AsyncRequests::AsyncRequests() : m_enable(false), m_passthrough(true)
{
}
AsyncRequests::AsyncRequests() = default;
void AsyncRequests::PullEventsInternal()
{

View File

@ -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;
};