Cleanup: use bool for poll functions
This commit is contained in:
@@ -469,7 +469,7 @@ static void text_cursor(wmWindow *win, ScrArea *sa, ARegion *ar)
|
||||
|
||||
/* ************* dropboxes ************* */
|
||||
|
||||
static int text_drop_poll(bContext *UNUSED(C), wmDrag *drag, const wmEvent *UNUSED(event))
|
||||
static bool text_drop_poll(bContext *UNUSED(C), wmDrag *drag, const wmEvent *UNUSED(event))
|
||||
{
|
||||
if (drag->type == WM_DRAG_PATH) {
|
||||
/* rule might not work? */
|
||||
@@ -486,7 +486,7 @@ static void text_drop_copy(wmDrag *drag, wmDropBox *drop)
|
||||
RNA_string_set(drop->ptr, "filepath", drag->path);
|
||||
}
|
||||
|
||||
static int text_drop_paste_poll(bContext *UNUSED(C), wmDrag *drag, const wmEvent *UNUSED(event))
|
||||
static bool text_drop_paste_poll(bContext *UNUSED(C), wmDrag *drag, const wmEvent *UNUSED(event))
|
||||
{
|
||||
if (drag->type == WM_DRAG_ID)
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user