Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Rishel <rishel.nick@gmail.com>2020-05-23 05:53:13 +0300
committerNicholas Rishel <rishel.nick@gmail.com>2020-10-31 02:29:03 +0300
commita5f3c0e563ce36badeb5d12175bef8104d23f650 (patch)
treeeb153370a489a5db680b5031e0941fa2b74047ed /intern/ghost
parent1b535e871998c021c6233c32ffd95a563a655980 (diff)
Move assignments into initializer list for GHOST_EventButton
and GHOST_EventCursor. Signed-off-by: Nicholas Rishel <rishel.nick@gmail.com>
Diffstat (limited to 'intern/ghost')
-rw-r--r--intern/ghost/intern/GHOST_EventButton.h4
-rw-r--r--intern/ghost/intern/GHOST_EventCursor.h5
2 files changed, 2 insertions, 7 deletions
diff --git a/intern/ghost/intern/GHOST_EventButton.h b/intern/ghost/intern/GHOST_EventButton.h
index 7072e0c5409..e1eb708c4bb 100644
--- a/intern/ghost/intern/GHOST_EventButton.h
+++ b/intern/ghost/intern/GHOST_EventButton.h
@@ -45,10 +45,8 @@ class GHOST_EventButton : public GHOST_Event {
GHOST_IWindow *window,
GHOST_TButtonMask button,
const GHOST_TabletData &tablet)
- : GHOST_Event(time, type, window)
+ : GHOST_Event(time, type, window), m_buttonEventData({button, tablet})
{
- m_buttonEventData.button = button;
- m_buttonEventData.tablet = tablet;
m_data = &m_buttonEventData;
}
diff --git a/intern/ghost/intern/GHOST_EventCursor.h b/intern/ghost/intern/GHOST_EventCursor.h
index ba85cd74723..38e3fa64399 100644
--- a/intern/ghost/intern/GHOST_EventCursor.h
+++ b/intern/ghost/intern/GHOST_EventCursor.h
@@ -45,11 +45,8 @@ class GHOST_EventCursor : public GHOST_Event {
GHOST_TInt32 x,
GHOST_TInt32 y,
const GHOST_TabletData &tablet)
- : GHOST_Event(msec, type, window)
+ : GHOST_Event(msec, type, window), m_cursorEventData({x, y, tablet})
{
- m_cursorEventData.x = x;
- m_cursorEventData.y = y;
- m_cursorEventData.tablet = tablet;
m_data = &m_cursorEventData;
}