From c9e35c2ced92082c86f1ecb9ecd16c6230218c7c Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 25 Sep 2022 15:14:13 +1000 Subject: Cleanup: remove redundant double parenthesis --- source/blender/windowmanager/intern/wm_event_system.cc | 2 +- source/blender/windowmanager/intern/wm_operators.c | 2 +- source/blender/windowmanager/message_bus/intern/wm_message_bus_static.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'source/blender/windowmanager') diff --git a/source/blender/windowmanager/intern/wm_event_system.cc b/source/blender/windowmanager/intern/wm_event_system.cc index 82a554d80b4..2fcb39aeee4 100644 --- a/source/blender/windowmanager/intern/wm_event_system.cc +++ b/source/blender/windowmanager/intern/wm_event_system.cc @@ -2387,7 +2387,7 @@ static int wm_handler_operator_call(bContext *C, /* When the window changes the modal modifier may have loaded a new blend file * (the `system_demo_mode` add-on does this), so we have to assume the event, * operator, area, region etc have all been freed. */ - if ((CTX_wm_window(C) == win)) { + if (CTX_wm_window(C) == win) { wm_event_modalkeymap_end(event, &event_backup); diff --git a/source/blender/windowmanager/intern/wm_operators.c b/source/blender/windowmanager/intern/wm_operators.c index 09e64db6416..58791dbd00a 100644 --- a/source/blender/windowmanager/intern/wm_operators.c +++ b/source/blender/windowmanager/intern/wm_operators.c @@ -2740,7 +2740,7 @@ static int radial_control_invoke(bContext *C, wmOperator *op, const wmEvent *eve } /* get type, initial, min, and max values of the property */ - switch ((rc->type = RNA_property_type(rc->prop))) { + switch (rc->type = RNA_property_type(rc->prop)) { case PROP_INT: { int value, min, max, step; diff --git a/source/blender/windowmanager/message_bus/intern/wm_message_bus_static.c b/source/blender/windowmanager/message_bus/intern/wm_message_bus_static.c index 0e4f6a937bd..ad4db2be54d 100644 --- a/source/blender/windowmanager/message_bus/intern/wm_message_bus_static.c +++ b/source/blender/windowmanager/message_bus/intern/wm_message_bus_static.c @@ -31,7 +31,7 @@ static bool wm_msg_static_gset_cmp(const void *key_a_p, const void *key_b_p) { const wmMsgParams_Static *params_a = &((const wmMsgSubscribeKey_Static *)key_a_p)->msg.params; const wmMsgParams_Static *params_b = &((const wmMsgSubscribeKey_Static *)key_b_p)->msg.params; - return !((params_a->event == params_b->event)); + return !(params_a->event == params_b->event); } static void wm_msg_static_gset_key_free(void *key_p) { -- cgit v1.2.3