Commit 468e9e4a authored by Maciej Suminski's avatar Maciej Suminski

Initalize fields in TOOL_EVENT constructors.

parent ca399b64
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment