]> git.saurik.com Git - wxWidgets.git/commit
Initialize wxButton::m_authNeeded in ctor and not Create() in wxMSW.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 27 Feb 2011 12:47:43 +0000 (12:47 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 27 Feb 2011 12:47:43 +0000 (12:47 +0000)
commit98977bf454c66de733241ba22248ca9e9e185759
tree1a54a0f5bdee23881ea62d1241852f8e110a9f6a
parent6af59fe7f49a69ce78f33f6fc252938e4abe3191
Initialize wxButton::m_authNeeded in ctor and not Create() in wxMSW.

Ensure that the member is always initialized as calling GetAuthNeeded() for a
default-constructed button would access a non-initialized variable before.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67058 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/msw/button.h
src/msw/button.cpp