X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8907154c1a8a6882c6797d1f16393ddfb23e7f3a..1bf629bd9a2c19d7298f8396b8f41817bb1d529d:/samples/docvwmdi/doc.cpp diff --git a/samples/docvwmdi/doc.cpp b/samples/docvwmdi/doc.cpp index eaefcc9468..cba38cb497 100644 --- a/samples/docvwmdi/doc.cpp +++ b/samples/docvwmdi/doc.cpp @@ -19,12 +19,17 @@ #ifndef WX_PRECOMP #include "wx/wx.h" #endif -#include "wx/txtstrm.h" #if !wxUSE_DOC_VIEW_ARCHITECTURE #error You must set wxUSE_DOC_VIEW_ARCHITECTURE to 1 in setup.h! #endif +#if wxUSE_STD_IOSTREAM + #include "wx/ioswrap.h" +#else + #include "wx/txtstrm.h" +#endif + #include "doc.h" #include "view.h" @@ -117,7 +122,7 @@ wxInputStream& DrawingDocument::LoadObject(wxInputStream& stream) } #endif -DoodleSegment::DoodleSegment(DoodleSegment& seg) +DoodleSegment::DoodleSegment(const DoodleSegment& seg) :wxObject() { wxList::compatibility_iterator node = seg.lines.GetFirst();