diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-01-21 19:48:11 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-01-21 19:53:48 +0400 |
commit | 4ae7ae6f2e49287f4565b8bd6bec486f37a826af (patch) | |
tree | fad0aeb96fdd585951bb775262dd1f97193830a4 /source/blender/windowmanager/intern/wm_event_system.c | |
parent | 70ce11d640e0a85c863db08f269167a75c0eb251 (diff) |
Code Cleanup: use bool for return values and correct comments
also remove CDDM_Check, theres no need for it.
Diffstat (limited to 'source/blender/windowmanager/intern/wm_event_system.c')
-rw-r--r-- | source/blender/windowmanager/intern/wm_event_system.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/windowmanager/intern/wm_event_system.c b/source/blender/windowmanager/intern/wm_event_system.c index 308c14814af..01086fad305 100644 --- a/source/blender/windowmanager/intern/wm_event_system.c +++ b/source/blender/windowmanager/intern/wm_event_system.c @@ -644,7 +644,7 @@ static void wm_operator_reports(bContext *C, wmOperator *op, int retval, int cal /* this function is mainly to check that the rules for freeing * an operator are kept in sync. */ -static int wm_operator_register_check(wmWindowManager *wm, wmOperatorType *ot) +static bool wm_operator_register_check(wmWindowManager *wm, wmOperatorType *ot) { return wm && (wm->op_undo_depth == 0) && (ot->flag & OPTYPE_REGISTER); } @@ -1745,7 +1745,7 @@ static int wm_handler_fileselect_call(bContext *C, ListBase *handlers, wmEventHa return action; } -static int handler_boundbox_test(wmEventHandler *handler, wmEvent *event) +static bool handler_boundbox_test(wmEventHandler *handler, wmEvent *event) { if (handler->bbwin) { if (handler->bblocal) { |