]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/docview/doc.cpp
added missing consts and pass objects by const reference instead of by value (patch...
[wxWidgets.git] / samples / docview / doc.cpp
index f4b5f587c4ad817bd046df8341f44f6430b76f71..cc045583508e79d3e699bbba8bf7e669e9679a0d 100644 (file)
@@ -119,7 +119,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)