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
This commit is contained in:
Vadim Zeitlin
2008-12-08 16:24:39 +00:00
parent e723ee9439
commit 0c9c5b4376

View File

@@ -295,7 +295,8 @@ bool wxHeaderCtrl::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result)
wxEventType evtType = wxEVT_NULL; wxEventType evtType = wxEVT_NULL;
int idx = nmhdr->iItem; int idx = nmhdr->iItem;
int width = 0; int width = 0;
switch ( const UINT code = nmhdr->hdr.code ) const UINT code = nmhdr->hdr.code;
switch ( code )
{ {
// click events // click events
// ------------ // ------------