]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/calctrlg.cpp
fix unused variable warning in release build
[wxWidgets.git] / src / generic / calctrlg.cpp
index d59309415be57bb5204dbcd0dc2c59168b8a11a4..ec7a53158eb30b1539a350d7efc0628351bf9dda 100644 (file)
@@ -785,7 +785,7 @@ size_t wxGenericCalendarCtrl::GetWeek(const wxDateTime& date) const
 wxSize wxGenericCalendarCtrl::DoGetBestSize() const
 {
     // calc the size of the calendar
-    wx_const_cast(wxGenericCalendarCtrl *, this)->RecalcGeometry();
+    const_cast<wxGenericCalendarCtrl *>(this)->RecalcGeometry();
 
     wxCoord width = 7*m_widthCol,
             height = 7*m_heightRow + m_rowOffset;