Don't call CacheBestSize() from DoGetBestSize() implementations

This is unnecessary, wxWindow::GetBestSize() already does this, so calling it
from DoGetBestSize() called by it too is just useless.
This commit is contained in:
Vadim Zeitlin
2016-04-03 17:46:44 +02:00
parent c1cd1e01b5
commit 25c9b032a8
36 changed files with 23 additions and 97 deletions

View File

@@ -173,9 +173,7 @@ wxSize wxCalendarCtrl::DoGetBestSize() const
return wxCalendarCtrlBase::DoGetBestSize();
}
const wxSize best = wxRectFromRECT(rc).GetSize() + GetWindowBorderSize();
CacheBestSize(best);
return best;
return wxRectFromRECT(rc).GetSize() + GetWindowBorderSize();
}
wxCalendarHitTestResult