From: Włodzimierz Skiba Date: Mon, 8 Nov 2004 19:54:24 +0000 (+0000) Subject: Get shorter code with new wxRect constructor. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/3f0785de9a320f558b13f9f46b5f6356180578c1 Get shorter code with new wxRect constructor. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30371 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/listbkg.cpp b/src/generic/listbkg.cpp index 3b10666dcb..3fc2953c17 100644 --- a/src/generic/listbkg.cpp +++ b/src/generic/listbkg.cpp @@ -241,7 +241,7 @@ void wxListbook::OnSize(wxSizeEvent& event) #if wxUSE_LINE_IN_LISTBOOK if ( m_line ) { - wxRect rectLine(wxPoint(0, 0), sizeClient); + wxRect rectLine(sizeClient); switch ( GetWindowStyle() & wxLB_ALIGN_MASK ) { diff --git a/src/motif/dcclient.cpp b/src/motif/dcclient.cpp index 4bbab04cea..5881afe59e 100644 --- a/src/motif/dcclient.cpp +++ b/src/motif/dcclient.cpp @@ -1429,7 +1429,7 @@ void wxWindowDC::Clear() { wxCHECK_RET( Ok(), "invalid dc" ); - wxRect rect( wxPoint( 0, 0 ), GetSize() ); + wxRect rect( GetSize() ); Clear( rect ); }