diff options
author | Campbell Barton <campbell@blender.org> | 2022-09-26 07:23:52 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-09-26 07:23:52 +0300 |
commit | 34477bbfcde34d0b27f04eccdddd0a093d8be1c0 (patch) | |
tree | de6f4349f103671e0f1f9b459c0064cd0ce7a344 /intern/ghost | |
parent | 6275541df7e02c40e8c8650bba3104b5df8d34ef (diff) |
Cleanup: remove redundant parenthesis
Diffstat (limited to 'intern/ghost')
-rw-r--r-- | intern/ghost/intern/GHOST_SystemWayland.cpp | 8 | ||||
-rw-r--r-- | intern/ghost/intern/GHOST_SystemX11.cpp | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/intern/ghost/intern/GHOST_SystemWayland.cpp b/intern/ghost/intern/GHOST_SystemWayland.cpp index 4082cab4ccd..48401abd6b6 100644 --- a/intern/ghost/intern/GHOST_SystemWayland.cpp +++ b/intern/ghost/intern/GHOST_SystemWayland.cpp @@ -3141,7 +3141,7 @@ bool GHOST_SystemWayland::processEvents(bool waitForEvent) wl_display_roundtrip(d->display); } - if ((getEventManager()->getNumEvents() > 0)) { + if (getEventManager()->getNumEvents() > 0) { any_processed = true; } @@ -3219,7 +3219,7 @@ GHOST_TSuccess GHOST_SystemWayland::getButtons(GHOST_Buttons &buttons) const char *GHOST_SystemWayland::getClipboard(bool /*selection*/) const { - char *clipboard = static_cast<char *>(malloc((selection.size() + 1))); + char *clipboard = static_cast<char *>(malloc(selection.size() + 1)); memcpy(clipboard, selection.data(), selection.size() + 1); return clipboard; } @@ -3656,12 +3656,12 @@ static void cursor_visible_set(GWL_Seat *seat, if (set_mode == CURSOR_VISIBLE_ALWAYS_SET) { /* Pass. */ } - else if ((set_mode == CURSOR_VISIBLE_ONLY_SHOW)) { + else if (set_mode == CURSOR_VISIBLE_ONLY_SHOW) { if (!use_visible) { return; } } - else if ((set_mode == CURSOR_VISIBLE_ONLY_HIDE)) { + else if (set_mode == CURSOR_VISIBLE_ONLY_HIDE) { if (use_visible) { return; } diff --git a/intern/ghost/intern/GHOST_SystemX11.cpp b/intern/ghost/intern/GHOST_SystemX11.cpp index bb47cc54127..6b468f041c1 100644 --- a/intern/ghost/intern/GHOST_SystemX11.cpp +++ b/intern/ghost/intern/GHOST_SystemX11.cpp @@ -660,7 +660,7 @@ bool GHOST_SystemX11::processEvents(bool waitForEvent) } /* dispatch event to XIM server */ - if ((XFilterEvent(&xevent, (Window) nullptr) == True)) { + if (XFilterEvent(&xevent, (Window) nullptr) == True) { /* do nothing now, the event is consumed by XIM. */ continue; } @@ -673,7 +673,7 @@ bool GHOST_SystemX11::processEvents(bool waitForEvent) } else if (xevent.type == KeyPress) { if ((xevent.xkey.keycode == m_last_release_keycode) && - ((xevent.xkey.time <= m_last_release_time))) { + (xevent.xkey.time <= m_last_release_time)) { continue; } } |