X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8a18ea3f03ee46d13545a26156631ac102441fc1..e65a6cc1ec5537dc7f19f89e10cdfaae54adb264:/src/msw/datectrl.cpp diff --git a/src/msw/datectrl.cpp b/src/msw/datectrl.cpp index 0b291ecdd4..1009211b4d 100644 --- a/src/msw/datectrl.cpp +++ b/src/msw/datectrl.cpp @@ -124,7 +124,7 @@ WXDWORD wxDatePickerCtrl::MSWGetStyle(long style, WXDWORD *exstyle) const wxSize wxDatePickerCtrl::DoGetBestSize() const { - wxClientDC dc(wx_const_cast(wxDatePickerCtrl *, this)); + wxClientDC dc(const_cast(this)); // we can't use FormatDate() here as the CRT doesn't always use the same // format as the date picker control