]> git.saurik.com Git - wxWidgets.git/commitdiff
Document pure virtual wxDropTarget methods correctly.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 2 Apr 2012 16:07:24 +0000 (16:07 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 2 Apr 2012 16:07:24 +0000 (16:07 +0000)
GetData(), OnData() and OnDrop() were not documented as being pure virtual.

Closes #14165.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71074 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

interface/wx/dnd.h

index bdc65be16b917e8c8c6b02a9b80dbfe815082a16..fef09feb989e5c9b85238bfb7bc90622f1e4ec46 100644 (file)
@@ -99,13 +99,13 @@ public:
         associated with this drop target, calling its wxDataObject::SetData()
         method.
     */
-    virtual bool GetData();
+    virtual bool GetData() = 0;
 
     /**
         Called after OnDrop() returns @true. By default this will usually
         GetData() and will return the suggested default value @a def.
     */
-    virtual wxDragResult OnData(wxCoord x, wxCoord y, wxDragResult def);
+    virtual wxDragResult OnData(wxCoord x, wxCoord y, wxDragResult def) = 0;
 
     /**
         Called when the mouse is being dragged over the drop target. By
@@ -136,7 +136,7 @@ public:
 
         @return @true to accept the data, or @false to veto the operation.
     */
-    virtual bool OnDrop(wxCoord x, wxCoord y);
+    virtual bool OnDrop(wxCoord x, wxCoord y) = 0;
 
     /**
         Called when the mouse enters the drop target. By default, this calls