]> git.saurik.com Git - wxWidgets.git/commitdiff
s_verComCtl doesn't change (during program lifetime)
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 24 Jul 2006 13:49:02 +0000 (13:49 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 24 Jul 2006 13:49:02 +0000 (13:49 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40272 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/tbar95.cpp

index 317cfb1535b3587420e9f15bd41c7d88ce23e7ad..684e3f117ff8e7c1eb16633cd92adab495359b93 100644 (file)
@@ -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