Allow NULL width and/or height pointer parameters in wxQT, thanks @seandepagnier

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77915 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Mariano Reingart
2014-09-29 03:04:52 +00:00
parent 09f176eed0
commit 2d83f86841
2 changed files with 8 additions and 8 deletions

View File

@@ -782,8 +782,8 @@ void wxWindowQt::DoGetSize(int *width, int *height) const
wxASSERT( size.width() == rect.width() );
wxASSERT( size.height() == rect.height() );
*width = rect.width();
*height = rect.height();
if (width) *width = rect.width();
if (height) *height = rect.height();
}
@@ -815,8 +815,8 @@ void wxWindowQt::DoSetSize(int x, int y, int width, int height, int sizeFlags )
void wxWindowQt::DoGetClientSize(int *width, int *height) const
{
QRect geometry = GetHandle()->geometry();
*width = geometry.width();
*height = geometry.height();
if (width) *width = geometry.width();
if (height) *height = geometry.height();
}