code cleanup: use const events for modal and invoke operators.
[blender.git] / source / blender / editors / space_image / space_image.c
index d82a46e95785b468b382aaf602a73d5ad7cf5713..761becdbf8ef44239b6b29c741b6b6e0348a48ba 100644 (file)
@@ -337,7 +337,7 @@ static void image_keymap(struct wmKeyConfig *keyconf)
 }
 
 /* dropboxes */
-static int image_drop_poll(bContext *UNUSED(C), wmDrag *drag, wmEvent *UNUSED(event))
+static int image_drop_poll(bContext *UNUSED(C), wmDrag *drag, const wmEvent *UNUSED(event))
 {
        if (drag->type == WM_DRAG_PATH)
                if (ELEM3(drag->icon, 0, ICON_FILE_IMAGE, ICON_FILE_BLANK)) /* rule might not work? */