Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
468e9e4a
Commit
468e9e4a
authored
Aug 08, 2014
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initalize fields in TOOL_EVENT constructors.
parent
ca399b64
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
tool_event.h
include/tool/tool_event.h
+7
-2
No files found.
include/tool/tool_event.h
View file @
468e9e4a
...
@@ -171,7 +171,10 @@ public:
...
@@ -171,7 +171,10 @@ public:
TOOL_ACTION_SCOPE
aScope
=
AS_GLOBAL
)
:
TOOL_ACTION_SCOPE
aScope
=
AS_GLOBAL
)
:
m_category
(
aCategory
),
m_category
(
aCategory
),
m_actions
(
aAction
),
m_actions
(
aAction
),
m_scope
(
aScope
)
m_scope
(
aScope
),
m_mouseButtons
(
0
),
m_keyCode
(
0
),
m_modifiers
(
0
)
{
{
if
(
aCategory
==
TC_MOUSE
)
if
(
aCategory
==
TC_MOUSE
)
{
{
...
@@ -197,7 +200,9 @@ public:
...
@@ -197,7 +200,9 @@ public:
m_category
(
aCategory
),
m_category
(
aCategory
),
m_actions
(
aAction
),
m_actions
(
aAction
),
m_scope
(
aScope
),
m_scope
(
aScope
),
m_mouseButtons
(
0
)
m_mouseButtons
(
0
),
m_keyCode
(
0
),
m_modifiers
(
0
)
{
{
if
(
aCategory
==
TC_COMMAND
||
aCategory
==
TC_MESSAGE
)
if
(
aCategory
==
TC_COMMAND
||
aCategory
==
TC_MESSAGE
)
m_commandStr
=
aExtraParam
;
m_commandStr
=
aExtraParam
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment