From: Włodzimierz Skiba Date: Wed, 13 Apr 2005 17:54:58 +0000 (+0000) Subject: OW pedantic warning fix. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/1fef34b9eed0afe7f3d65f7c62bd85a679a5b6db?ds=inline OW pedantic warning fix. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33583 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/radiobox.cpp b/src/msw/radiobox.cpp index ac037051d8..c8e8ee0a6b 100644 --- a/src/msw/radiobox.cpp +++ b/src/msw/radiobox.cpp @@ -681,8 +681,8 @@ wxRadioBox::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam) { // no, we don't, erase the background ourselves (don't use our own // colour as with static box, see comments there) - wxFillRect(GetHwnd(), (HDC)wParam, - GetHbrushOf(wxBrush(GetParent()->GetBackgroundColour()))); + wxBrush brush(GetParent()->GetBackgroundColour()); + wxFillRect(GetHwnd(), (HDC)wParam, GetHbrushOf(brush)); } return 0;