Let wxCommandEvent's copy constr copy its string via .c_str() as otherwise ::Clone() isn't thread-safe

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53313 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling 2008-04-22 13:14:00 +00:00
parent e9f1f85702
commit c96cc30a5d

View File

@ -439,7 +439,7 @@ public:
wxCommandEvent(const wxCommandEvent& event)
: wxEvent(event),
m_cmdString(event.m_cmdString),
m_cmdString(event.m_cmdString.c_str()), // "thread-safe"
m_commandInt(event.m_commandInt),
m_extraLong(event.m_extraLong),
m_clientData(event.m_clientData),