From 3f0785de9a320f558b13f9f46b5f6356180578c1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?W=C5=82odzimierz=20Skiba?= Date: Mon, 8 Nov 2004 19:54:24 +0000 Subject: [PATCH] Get shorter code with new wxRect constructor. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30371 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/listbkg.cpp | 2 +- src/motif/dcclient.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 ); } -- 2.45.2