code cleanup: use const events for modal and invoke operators.
[blender.git] / source / blender / editors / object / object_add.c
index 3016f627a813f4d073470acd008f2d98d065b593..98dd39a390f1a76d8812b2494fea6a6ffcee665e 100644 (file)
@@ -740,7 +740,7 @@ void OBJECT_OT_empty_add(wmOperatorType *ot)
        ED_object_add_generic_props(ot, FALSE);
 }
 
-static int empty_drop_named_image_invoke(bContext *C, wmOperator *op, wmEvent *event)
+static int empty_drop_named_image_invoke(bContext *C, wmOperator *op, const wmEvent *event)
 {
        Base *base = NULL;
        Image *ima = NULL;