code cleanup: use const events for modal and invoke operators.
[blender.git] / source / blender / editors / screen / screendump.c
index 9cde62e8302ae57b445d81616ac55a5e3724ed09..0fbb4c25e78e3e9b9a5aa8408df4c79195381aa7 100644 (file)
@@ -204,7 +204,7 @@ static int screenshot_exec(bContext *C, wmOperator *op)
        return OPERATOR_FINISHED;
 }
 
-static int screenshot_invoke(bContext *C, wmOperator *op, wmEvent *UNUSED(event))
+static int screenshot_invoke(bContext *C, wmOperator *op, const wmEvent *UNUSED(event))
 {
        if (screenshot_data_create(C, op)) {
                if (RNA_struct_property_is_set(op->ptr, "filepath"))