]> git.saurik.com Git - wxWidgets.git/blobdiff - src/x11/glcanvas.cpp
Avoid outputting the assert message twice in non-GUI code.
[wxWidgets.git] / src / x11 / glcanvas.cpp
index acc31346dd9f7366e7bab730f861c357581f291d..2689a7af088c06b9cdc6329b197d50dba16747c6 100644 (file)
@@ -84,7 +84,7 @@ Window wxGLCanvas::GetXWindow() const
 
 int wxGLCanvas::GetColourIndex(const wxColour& col_)
 {
-    wxColour& col = wx_const_cast(wxColour&, col_);
+    wxColour& col = const_cast<wxColour&>(col_);
 
 #ifdef __WXMOTIF__
     col.AllocColour(GetXDisplay());