Initalize fields in TOOL_EVENT constructors.

This commit is contained in:
Maciej Suminski 2014-08-08 14:34:44 +02:00
parent ca399b6401
commit 468e9e4ac9
1 changed files with 7 additions and 2 deletions

View File

@ -171,7 +171,10 @@ public:
TOOL_ACTION_SCOPE aScope = AS_GLOBAL ) :
m_category( aCategory ),
m_actions( aAction ),
m_scope( aScope )
m_scope( aScope ),
m_mouseButtons( 0 ),
m_keyCode( 0 ),
m_modifiers( 0 )
{
if( aCategory == TC_MOUSE )
{
@ -197,7 +200,9 @@ public:
m_category( aCategory ),
m_actions( aAction ),
m_scope( aScope ),
m_mouseButtons( 0 )
m_mouseButtons( 0 ),
m_keyCode( 0 ),
m_modifiers( 0 )
{
if( aCategory == TC_COMMAND || aCategory == TC_MESSAGE )
m_commandStr = aExtraParam;