From: Ove Kaaven Date: Thu, 29 Jul 1999 10:16:49 +0000 (+0000) Subject: By assigning wxEmptyString instead of NULL to m_commandString, X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/04392d70b9f3774176d0d598683f1bed27e6c9c3?ds=inline By assigning wxEmptyString instead of NULL to m_commandString, I hope to reduce the number of crash-on-startup events git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3193 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/event.cpp b/src/common/event.cpp index b7cb5cafaf..831b257dcd 100644 --- a/src/common/event.cpp +++ b/src/common/event.cpp @@ -127,7 +127,7 @@ wxCommandEvent::wxCommandEvent(wxEventType commandType, int theId) m_extraLong = 0; m_commandInt = 0; m_id = theId; - m_commandString = (wxChar *) NULL; + m_commandString = wxEmptyString; m_isCommandEvent = TRUE; }