From: Vadim Zeitlin Date: Mon, 8 Dec 2008 16:24:39 +0000 (+0000) Subject: buildbot VC6 apparently can't compile variable declaration inside a switch statement... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/0c9c5b4376e303f32438853cb73e689e691e76ca buildbot VC6 apparently can't compile variable declaration inside a switch statement even though my own VC6 SP5 can git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57194 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/headerctrl.cpp b/src/msw/headerctrl.cpp index e60b1bbc1b..d351d6ca62 100644 --- a/src/msw/headerctrl.cpp +++ b/src/msw/headerctrl.cpp @@ -295,7 +295,8 @@ bool wxHeaderCtrl::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result) wxEventType evtType = wxEVT_NULL; int idx = nmhdr->iItem; int width = 0; - switch ( const UINT code = nmhdr->hdr.code ) + const UINT code = nmhdr->hdr.code; + switch ( code ) { // click events // ------------