X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c105dda0810d927d8531e4949ada0b407a1cbebd..f8b13b5868b380ba53a0c030d6349f72dc4a9fae:/include/wx/hyperlink.h diff --git a/include/wx/hyperlink.h b/include/wx/hyperlink.h index 586f1c583d..264b771282 100644 --- a/include/wx/hyperlink.h +++ b/include/wx/hyperlink.h @@ -9,8 +9,8 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifndef _WX_HYPERLINK_H__ -#define _WX_HYPERLINK_H__ +#ifndef _WX_HYPERLINK_H_ +#define _WX_HYPERLINK_H_ #include "wx/defs.h" @@ -69,12 +69,10 @@ public: // wxWindow::Get/SetFont, wxWindow::Get/SetCursor are important ! protected: -#ifdef __WXDEBUG__ + virtual wxBorder GetDefaultBorder() const { return wxBORDER_NONE; } + // checks for validity some of the ctor/Create() function parameters void CheckParams(const wxString& label, const wxString& url, long style); -#else - void CheckParams() {} -#endif public: // not part of the public API but needs to be public as used by @@ -82,6 +80,9 @@ public: void SendEvent(); }; +#ifndef __WXDEBUG__ +inline void wxHyperlinkCtrlBase::CheckParams(const wxString&, const wxString&, long) { } +#endif // ---------------------------------------------------------------------------- // wxHyperlinkEvent @@ -144,7 +145,7 @@ typedef void (wxEvtHandler::*wxHyperlinkEventFunction)(wxHyperlinkEvent&); -#if defined(__WXGTK210__) +#if defined(__WXGTK210__) && !defined(__WXUNIVERSAL__) #include "wx/gtk/hyperlink.h" #else #include "wx/generic/hyperlink.h" @@ -154,4 +155,4 @@ typedef void (wxEvtHandler::*wxHyperlinkEventFunction)(wxHyperlinkEvent&); #endif // wxUSE_HYPERLINKCTRL -#endif // _WX_HYPERLINK_H__ +#endif // _WX_HYPERLINK_H_