diff --git a/include/wx/dataobj.h b/include/wx/dataobj.h index 4b52ffac17..348ad20286 100644 --- a/include/wx/dataobj.h +++ b/include/wx/dataobj.h @@ -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__) diff --git a/interface/wx/dataobj.h b/interface/wx/dataobj.h index 2647306b31..b6afd34daf 100644 --- a/interface/wx/dataobj.h +++ b/interface/wx/dataobj.h @@ -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: /**