X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b1d4dd7add411ebff1ce4a8d1d992e0e43ee26b1..6f054ac5e8f4d9daf9f4d7fabfa285cb7b148d17:/src/generic/laywin.cpp diff --git a/src/generic/laywin.cpp b/src/generic/laywin.cpp index 943351d8e6..738e819a0d 100644 --- a/src/generic/laywin.cpp +++ b/src/generic/laywin.cpp @@ -12,7 +12,7 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "laywin.h" #endif @@ -195,7 +195,7 @@ bool wxLayoutAlgorithm::LayoutMDIFrame(wxMDIParentFrame* frame, wxRect* r) wxCalculateLayoutEvent event; event.SetRect(rect); - wxWindowList::Node *node = frame->GetChildren().GetFirst(); + wxWindowList::compatibility_iterator node = frame->GetChildren().GetFirst(); while (node) { wxWindow* win = node->GetData(); @@ -264,7 +264,7 @@ bool wxLayoutAlgorithm::LayoutWindow(wxWindow* parent, wxWindow* mainWindow) // Find the last layout-aware window, so we can make it fill all remaining // space. wxWindow *lastAwareWindow = NULL; - wxWindowList::Node *node = parent->GetChildren().GetFirst(); + wxWindowList::compatibility_iterator node = parent->GetChildren().GetFirst(); while (node) {