From: Włodzimierz Skiba <abx@abx.art.pl> Date: Mon, 12 Jul 2004 14:49:37 +0000 (+0000) Subject: Warning fix for assignment of unused value. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/c57c2993ecaa4acf32585f18e0185ea00bb34981 Warning fix for assignment of unused value. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28209 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/window.cpp b/src/msw/window.cpp index 345427d25a..ecf08a90b1 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -4890,12 +4890,11 @@ void wxGetCharSize(WXHWND wnd, int *x, int *y, const wxFont& the_font) { TEXTMETRIC tm; HDC dc = ::GetDC((HWND) wnd); - HFONT fnt =0; HFONT was = 0; // the_font.UseResource(); // the_font.RealizeResource(); - fnt = (HFONT)the_font.GetResourceHandle(); // const_cast + HFONT fnt = (HFONT)the_font.GetResourceHandle(); // const_cast if ( fnt ) was = (HFONT) SelectObject(dc,fnt);