Fix wxURLDataObject comment and documentation for wxGTK

Fix a copy-and-pasto in the header and also mention that wxURLDataObject
derives from wxDataObjectComposite, and not wxTextDataObject, in wxGTK
too.

Also add a note about the exact base class being an implementation
detail.

Closes https://github.com/wxWidgets/wxWidgets/pull/624
This commit is contained in:
pavelxdd
2017-12-01 15:00:07 +03:00
committed by Vadim Zeitlin
parent 879876e047
commit 504c22a512
2 changed files with 6 additions and 4 deletions

View File

@@ -549,7 +549,7 @@ private:
// wxURLDataObject defined in msw/ole/dataobj2.h
#elif defined(__WXGTK20__)
#include "wx/gtk/dataobj2.h"
// wxURLDataObject defined in msw/ole/dataobj2.h
// wxURLDataObject defined in gtk/dataobj2.h
#else
#if defined(__WXGTK__)

View File

@@ -630,15 +630,17 @@ public:
wxTheClipboard->SetData(new wxURLDataObject(url));
@endcode
@note This class is derived from wxDataObjectComposite on Windows rather
than wxTextDataObject on all other platforms.
@note The actual base class of this class is not always wxDataObject
itself, but rather either wxDataObjectComposite in wxMSW and wxGTK or
wxTextDataObject in the other ports. Please don't rely on the exact
base class, it is not guaranteed that it won't change in the future.
@library{wxcore}
@category{dnd}
@see @ref overview_dnd, wxDataObject
*/
class wxURLDataObject: public wxTextDataObject
class wxURLDataObject: public wxDataObject
{
public:
/**