X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ef0e92205a01c7d0ca6f381cc690cb5d4fa595c9..b04237742c51e022af8ca8fe8933437734f392a3:/include/wx/dnd.h diff --git a/include/wx/dnd.h b/include/wx/dnd.h index d1cde3e9cd..ac3c9c4f84 100644 --- a/include/wx/dnd.h +++ b/include/wx/dnd.h @@ -63,7 +63,7 @@ public: : m_cursorCopy(cursorCopy), m_cursorMove(cursorMove), m_cursorStop(cursorStop) - { m_data = (wxDataObject *)NULL; } + { m_data = NULL; } virtual ~wxDropSourceBase() { } // set the data which is transfered by drag and drop @@ -115,7 +115,7 @@ protected: m_cursorMove, m_cursorStop; - DECLARE_NO_COPY_CLASS(wxDropSourceBase) + wxDECLARE_NO_COPY_CLASS(wxDropSourceBase); }; // ---------------------------------------------------------------------------- @@ -135,7 +135,7 @@ public: // ctor takes a pointer to heap-allocated wxDataObject which will be owned // by wxDropTarget and deleted by it automatically. If you don't give it // here, you can use SetDataObject() later. - wxDropTargetBase(wxDataObject *dataObject = (wxDataObject*)NULL) + wxDropTargetBase(wxDataObject *dataObject = NULL) { m_dataObject = dataObject; m_defaultAction = wxDragNone; } // dtor deletes our data object virtual ~wxDropTargetBase() @@ -203,7 +203,7 @@ protected: wxDataObject *m_dataObject; wxDragResult m_defaultAction; - DECLARE_NO_COPY_CLASS(wxDropTargetBase) + wxDECLARE_NO_COPY_CLASS(wxDropTargetBase); }; // ---------------------------------------------------------------------------- @@ -243,7 +243,7 @@ public: virtual wxDragResult OnData(wxCoord x, wxCoord y, wxDragResult def); private: - DECLARE_NO_COPY_CLASS(wxTextDropTarget) + wxDECLARE_NO_COPY_CLASS(wxTextDropTarget); }; // A drop target which accepts files (dragged from File Manager or Explorer) @@ -259,7 +259,7 @@ public: virtual wxDragResult OnData(wxCoord x, wxCoord y, wxDragResult def); private: - DECLARE_NO_COPY_CLASS(wxFileDropTarget) + wxDECLARE_NO_COPY_CLASS(wxFileDropTarget); }; #endif // wxUSE_DRAG_AND_DROP