From 791a0ce702b2d97bf50d0289a624e10f0aeaea90 Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Mon, 28 Mar 2016 14:38:30 +0200 Subject: [PATCH] common: initialize scalar field of pxThread CID 147022 v2: initialize all member in initializer list --- common/src/Utilities/ThreadTools.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/common/src/Utilities/ThreadTools.cpp b/common/src/Utilities/ThreadTools.cpp index 417dbe05d5..a9827cceda 100644 --- a/common/src/Utilities/ThreadTools.cpp +++ b/common/src/Utilities/ThreadTools.cpp @@ -172,12 +172,12 @@ void Threading::pxThread::_pt_callback_cleanup( void* handle ) Threading::pxThread::pxThread( const wxString& name ) : m_name( name ) + , m_thread() + , m_native_id(0) + , m_native_handle(0) + , m_detached(true) // start out with m_thread in detached/invalid state + , m_running(false) { - m_detached = true; // start out with m_thread in detached/invalid state - m_running = false; - - m_native_id = 0; - m_native_handle = 0; } // This destructor performs basic "last chance" cleanup, which is a blocking join