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:
authorHans Goudey <h.goudey@me.com>2020-12-19 00:12:15 +0300
committerHans Goudey <h.goudey@me.com>2020-12-19 00:12:15 +0300
commit6367bc716a9e902bf75b2164cfd75702e6f13acb (patch)
tree96a58e218ad7c09e1fd08dd09a1dda2f4e70a0c4 /source/blender/windowmanager/intern/wm_event_system.c
parente2983392894e380203966e49b2caa3807a661eb9 (diff)
Cleanup: Use true and false for booleans
Diffstat (limited to 'source/blender/windowmanager/intern/wm_event_system.c')
-rw-r--r--source/blender/windowmanager/intern/wm_event_system.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/windowmanager/intern/wm_event_system.c b/source/blender/windowmanager/intern/wm_event_system.c
index c1ae307eb55..82ca54db075 100644
--- a/source/blender/windowmanager/intern/wm_event_system.c
+++ b/source/blender/windowmanager/intern/wm_event_system.c
@@ -212,11 +212,11 @@ static bool wm_test_duplicate_notifier(const wmWindowManager *wm, uint type, voi
LISTBASE_FOREACH (wmNotifier *, note, &wm->queue) {
if ((note->category | note->data | note->subtype | note->action) == type &&
note->reference == reference) {
- return 1;
+ return true;
}
}
- return 0;
+ return false;
}
void WM_event_add_notifier_ex(wmWindowManager *wm, const wmWindow *win, uint type, void *reference)
@@ -785,8 +785,8 @@ bool WM_operator_poll(bContext *C, wmOperatorType *ot)
LISTBASE_FOREACH (wmOperatorTypeMacro *, macro, &ot->macro) {
wmOperatorType *ot_macro = WM_operatortype_find(macro->idname, 0);
- if (0 == WM_operator_poll(C, ot_macro)) {
- return 0;
+ if (!WM_operator_poll(C, ot_macro)) {
+ return false;
}
}
@@ -798,7 +798,7 @@ bool WM_operator_poll(bContext *C, wmOperatorType *ot)
return ot->poll(C);
}
- return 1;
+ return true;
}
/* sets up the new context and calls 'wm_operator_invoke()' with poll_only */