From: Vadim Zeitlin Date: Mon, 24 Jul 2006 13:49:02 +0000 (+0000) Subject: s_verComCtl doesn't change (during program lifetime) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/60decce54713a7204a5c9fedf6ac842284a13ae5 s_verComCtl doesn't change (during program lifetime) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40272 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/tbar95.cpp b/src/msw/tbar95.cpp index 317cfb1535..684e3f117f 100644 --- a/src/msw/tbar95.cpp +++ b/src/msw/tbar95.cpp @@ -383,7 +383,7 @@ WXDWORD wxToolBar::MSWGetStyle(long style, WXDWORD *exstyle) const if ( style & (wxTB_FLAT | wxTB_HORZ_LAYOUT) ) { // static as it doesn't change during the program lifetime - static int s_verComCtl = wxApp::GetComCtl32Version(); + static const int s_verComCtl = wxApp::GetComCtl32Version(); // comctl32.dll 4.00 doesn't support the flat toolbars and using this // style with 6.00 (part of Windows XP) leads to the toolbar with