X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/655719367ac5e131d9642e5783f3ecf64d1a3385..26da5e4f5a658046327e38e35880b31ea6444f4f:/include/wx/mac/classic/dnd.h?ds=sidebyside

diff --git a/include/wx/mac/classic/dnd.h b/include/wx/mac/classic/dnd.h
index 989a977628..8aae7f23c8 100644
--- a/include/wx/mac/classic/dnd.h
+++ b/include/wx/mac/classic/dnd.h
@@ -1,5 +1,5 @@
 ///////////////////////////////////////////////////////////////////////////////
-// Name:        dnd.h
+// Name:        wx/mac/classic/dnd.h
 // Purpose:     Declaration of the wxDropTarget, wxDropSource class etc.
 // Author:      Stefan Csomor
 // RCS-ID:      $Id$
@@ -10,10 +10,6 @@
 #ifndef _WX_DND_H_
 #define _WX_DND_H_
 
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
-#pragma interface "dnd.h"
-#endif
-
 #if wxUSE_DRAG_AND_DROP
 
 #include "wx/defs.h"
@@ -59,7 +55,7 @@ class WXDLLEXPORT wxDropTarget: public wxDropTargetBase
     virtual bool OnDrop(wxCoord x, wxCoord y);
     virtual wxDragResult OnData(wxCoord x, wxCoord y, wxDragResult def);
     virtual bool GetData();
-    
+
     bool CurrentDragHasSupportedFormat() ;
     void SetCurrentDrag( void* drag ) { m_currentDrag = drag ; }
     void* GetCurrentDrag() { return m_currentDrag ; }
@@ -90,7 +86,7 @@ public:
                  const wxCursor &cursorMove = wxNullCursor,
                  const wxCursor &cursorStop = wxNullCursor);
 
-    ~wxDropSource();
+    virtual ~wxDropSource();
 
     // do it (call this in response to a mouse button press, for example)
     // params: if bAllowMove is false, data can be only copied
@@ -99,16 +95,14 @@ public:
     wxWindow*     GetWindow() { return m_window ; }
     void SetCurrentDrag( void* drag ) { m_currentDrag = drag ; }
     void* GetCurrentDrag() { return m_currentDrag ; }
-	bool			MacInstallDefaultCursor(wxDragResult effect) ;
-  protected :
-  	
+    bool MacInstallDefaultCursor(wxDragResult effect) ;
+protected :
+
     wxWindow        *m_window;
     void* m_currentDrag ;
 };
 
-#endif
-      // D&D
-
-#endif  
-       //_WX_DND_H_
+#endif // wxUSE_DRAG_AND_DROP
 
+#endif
+    //_WX_DND_H_