]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/docview/doc.cpp
Simpler version of [ 1604590 ] wxListCtrl::FindItem & wxString
[wxWidgets.git] / samples / docview / doc.cpp
index f4b5f587c4ad817bd046df8341f44f6430b76f71..82ddbae73f4e69214f4b2edfc46ae50c94c23f61 100644 (file)
 #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
@@ -119,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)