From: Włodzimierz Skiba <abx@abx.art.pl>
Date: Thu, 5 Aug 2004 14:29:55 +0000 (+0000)
Subject: Order of initializations according to class construction.
X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/f6def1fae7f76d4fe352c641ead088b2cb95e91d

Order of initializations according to class construction.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28639 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---

diff --git a/samples/exec/exec.cpp b/samples/exec/exec.cpp
index 2ff98f2610..3ee7e3b60e 100644
--- a/samples/exec/exec.cpp
+++ b/samples/exec/exec.cpp
@@ -1053,9 +1053,9 @@ MyPipeFrame::MyPipeFrame(wxFrame *parent,
            : wxFrame(parent, wxID_ANY, cmd),
              m_process(process),
              // in a real program we'd check that the streams are !NULL here
+             m_out(*process->GetOutputStream()),
              m_in(*process->GetInputStream()),
-             m_err(*process->GetErrorStream()),
-             m_out(*process->GetOutputStream())
+             m_err(*process->GetErrorStream())
 {
     m_process->SetNextHandler(this);