From 8a00553fdad107250c37a5ecca4810660b749bba Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 5 Dec 2014 22:17:08 +0000 Subject: [PATCH] Remove unneeded CacheBestSize() from wxMSW wxDateTimePickerCtrl. The best size is already cached by the base class GetBestSize(), no need to do it here as well. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78219 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/datetimectrl.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/msw/datetimectrl.cpp b/src/msw/datetimectrl.cpp index 408feab3eb..b7619fd7f2 100644 --- a/src/msw/datetimectrl.cpp +++ b/src/msw/datetimectrl.cpp @@ -133,9 +133,7 @@ wxSize wxDateTimePickerCtrl::DoGetBestSize() const if ( MSWAllowsNone() ) x += 3*GetCharWidth(); - wxSize best(x, EDIT_HEIGHT_FROM_CHAR_HEIGHT(y)); - CacheBestSize(best); - return best; + return wxSize(x, EDIT_HEIGHT_FROM_CHAR_HEIGHT(y)); } bool