]> git.saurik.com Git - wxWidgets.git/commitdiff
avoid implicitly converting a wxWindow* to wxGLCanvas
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 31 Jan 2008 18:27:50 +0000 (18:27 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 31 Jan 2008 18:27:50 +0000 (18:27 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51475 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/msw/glcanvas.h

index 203816b4ea115f4b3951bce1724388475a0a8495..d37a5697681b464e88943fb7a3596b2a023d116c 100644 (file)
@@ -46,6 +46,7 @@ private:
 class WXDLLIMPEXP_GL wxGLCanvas : public wxGLCanvasBase
 {
 public:
+    wxEXPLICIT // avoid implicitly converting a wxWindow* to wxGLCanvas
     wxGLCanvas(wxWindow *parent,
                wxWindowID id = wxID_ANY,
                const int *attribList = NULL,