X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a34d583222fc8c1bc5e6fad653118052e544f49a..574c6e1a978d5be9e9f80b28238d6f274f368c5d:/samples/docview/doc.cpp diff --git a/samples/docview/doc.cpp b/samples/docview/doc.cpp index 9d10db817e..82ddbae73f 100644 --- a/samples/docview/doc.cpp +++ b/samples/docview/doc.cpp @@ -9,10 +9,6 @@ // Licence: wxWindows license ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ -// #pragma implementation -#endif - // For compilers that support precompilation, includes "wx/wx.h". #include "wx/wxprec.h" @@ -23,11 +19,16 @@ #ifndef WX_PRECOMP #include "wx/wx.h" #endif -#include "wx/txtstrm.h" #ifdef __WXMAC__ #include "wx/filename.h" #endif +#if wxUSE_STD_IOSTREAM + #include "wx/ioswrap.h" +#else + #include "wx/txtstrm.h" +#endif + #if !wxUSE_DOC_VIEW_ARCHITECTURE #error You must set wxUSE_DOC_VIEW_ARCHITECTURE to 1 in setup.h! #endif @@ -123,7 +124,7 @@ wxInputStream& DrawingDocument::LoadObject(wxInputStream& stream) } #endif -DoodleSegment::DoodleSegment(DoodleSegment& seg):wxObject() +DoodleSegment::DoodleSegment(const DoodleSegment& seg):wxObject() { wxList::compatibility_iterator node = seg.lines.GetFirst(); while (node)