]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/dragimag/dragimag.cpp
removed non-const accessors for pens, brushes, &c from wxDC
[wxWidgets.git] / samples / dragimag / dragimag.cpp
index f1c9764ac6d77f12e483271e5a8f0e92f4583712..398a53d634c4ebf5b7e67f2c90a7679f2a8a65fe 100644 (file)
@@ -270,7 +270,7 @@ void MyCanvas::OnMouseEvent(wxMouseEvent& event)
 
 void MyCanvas::DrawShapes(wxDC& dc)
 {
-    wxNode* node = m_displayList.GetFirst();
+    wxList::compatibility_iterator node = m_displayList.GetFirst();
     while (node)
     {
         DragShape* shape = (DragShape*) node->GetData();
@@ -295,7 +295,7 @@ void MyCanvas::EraseShape(DragShape* shape, wxDC& dc)
 
 void MyCanvas::ClearShapes()
 {
-    wxNode* node = m_displayList.GetFirst();
+    wxList::compatibility_iterator node = m_displayList.GetFirst();
     while (node)
     {
         DragShape* shape = (DragShape*) node->GetData();
@@ -307,7 +307,7 @@ void MyCanvas::ClearShapes()
 
 DragShape* MyCanvas::FindShape(const wxPoint& pt) const
 {
-    wxNode* node = m_displayList.GetFirst();
+    wxList::compatibility_iterator node = m_displayList.GetFirst();
     while (node)
     {
         DragShape* shape = (DragShape*) node->GetData();
@@ -455,7 +455,7 @@ bool MyApp::TileBitmap(const wxRect& rect, wxDC& dc, wxBitmap& bitmap)
     return TRUE;
 }
 
-void MyApp::OnUseScreen(wxCommandEvent& event)
+void MyApp::OnUseScreen(wxCommandEvent& WXUNUSED(event))
 {
     m_useScreen = !m_useScreen;
 }