Initialize wxAppConsoleBase members in their declaration
No real changes, just initialize member variables immediately in the declaration instead of doing it in the ctor in a different file.
This commit is contained in:
parent
347d7fcccb
commit
b4256aa4e2
2 changed files with 5 additions and 9 deletions
|
|
@ -502,13 +502,13 @@ protected:
|
|||
m_appDisplayName, // app display name ("My Application")
|
||||
m_className; // class name
|
||||
|
||||
// the class defining the application behaviour, nullptr initially and created
|
||||
// by GetTraits() when first needed
|
||||
wxAppTraits *m_traits;
|
||||
// allows customizing the application behaviour, created by GetTraits()
|
||||
// when first needed
|
||||
wxAppTraits *m_traits = nullptr;
|
||||
|
||||
// the main event loop of the application (may be null if the loop hasn't
|
||||
// been started yet or has already terminated)
|
||||
wxEventLoopBase *m_mainLoop;
|
||||
wxEventLoopBase *m_mainLoop = nullptr;
|
||||
|
||||
|
||||
// pending events management vars:
|
||||
|
|
@ -529,7 +529,7 @@ protected:
|
|||
#endif
|
||||
|
||||
// flag modified by Suspend/ResumeProcessingOfPendingEvents()
|
||||
bool m_bDoPendingEventProcessing;
|
||||
bool m_bDoPendingEventProcessing = true;
|
||||
|
||||
friend class WXDLLIMPEXP_FWD_BASE wxEvtHandler;
|
||||
|
||||
|
|
|
|||
|
|
@ -134,10 +134,6 @@ wxDEFINE_TIED_SCOPED_PTR_TYPE(wxEventLoopBase)
|
|||
|
||||
wxAppConsoleBase::wxAppConsoleBase()
|
||||
{
|
||||
m_traits = nullptr;
|
||||
m_mainLoop = nullptr;
|
||||
m_bDoPendingEventProcessing = true;
|
||||
|
||||
ms_appInstance = reinterpret_cast<wxAppConsole *>(this);
|
||||
|
||||
#ifdef __WXDEBUG__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue