]> git.saurik.com Git - wxWidgets.git/commitdiff
buildbot VC6 apparently can't compile variable declaration inside a switch statement...
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 8 Dec 2008 16:24:39 +0000 (16:24 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 8 Dec 2008 16:24:39 +0000 (16:24 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57194 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/headerctrl.cpp

index e60b1bbc1bd9d50f427471d66b6566f9787460d6..d351d6ca62fe6dbb912cccf6fd66e9b7d82b8e5f 100644 (file)
@@ -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
         // ------------