X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2ba06d5a8ccf8c224fcfbd52fa01a55abf7befbd..5c60e84569e7646f091a60c14ac2f4c54b100d8a:/contrib/samples/ogl/studio/csprint.cpp?ds=sidebyside diff --git a/contrib/samples/ogl/studio/csprint.cpp b/contrib/samples/ogl/studio/csprint.cpp index ff3e0ec461..beec3c1db6 100644 --- a/contrib/samples/ogl/studio/csprint.cpp +++ b/contrib/samples/ogl/studio/csprint.cpp @@ -9,10 +9,6 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ -// #pragma implementation -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -24,8 +20,7 @@ #include #endif -#include -#include +#include // base header of OGL, includes and adjusts wx/deprecated/setup.h #include @@ -70,7 +65,7 @@ bool wxDiagramClipboard::DoCopy(wxDiagram* diagramFrom, wxDiagram* diagramTo, bo // First copy all node shapes. wxList* shapeList = diagramFrom->GetShapeList(); - wxNode* node = shapeList->GetFirst(); + wxObjectList::compatibility_iterator node = shapeList->GetFirst(); while (node) { wxShape* shape = (wxShape*) node->GetData(); @@ -137,7 +132,7 @@ bool wxDiagramClipboard::DoCopy(wxDiagram* diagramFrom, wxDiagram* diagramTo, bo // Make a list of all the new lines, in the same order as the old lines. // Then apply the list of new lines to the shape. wxList newLines; - wxNode* lineNode = shape->GetLines().GetFirst(); + wxObjectList::compatibility_iterator lineNode = shape->GetLines().GetFirst(); while (lineNode) { wxLineShape* lineShape = (wxLineShape*) lineNode->GetData(); @@ -190,7 +185,7 @@ bool wxDiagramClipboard::CopyToClipboard(double scale) if (!newBitmap->Ok()) { delete newBitmap; - + wxChar buf[200]; wxSprintf(buf, _T("Sorry, could not allocate clipboard bitmap (%dx%d)"), (maxX+10), (maxY+10)); wxMessageBox(buf, _T("Clipboard copy problem")); @@ -226,7 +221,7 @@ bool wxDiagramClipboard::CopyToClipboard(double scale) // Close clipboard wxCloseClipboard(); } - + delete newBitmap; delete mf;