code cleanup: use const events for modal and invoke operators.
[blender.git] / source / blender / editors / sculpt_paint / sculpt.c
index c8544e0495d993d8bf76866eaf6f90a172cb9534..21e83918d384f1de60e4e2bcf517207063a630e4 100644 (file)
@@ -4311,7 +4311,7 @@ static void sculpt_stroke_done(const bContext *C, struct PaintStroke *UNUSED(str
        sculpt_brush_exit_tex(sd);
 }
 
-static int sculpt_brush_stroke_invoke(bContext *C, wmOperator *op, wmEvent *event)
+static int sculpt_brush_stroke_invoke(bContext *C, wmOperator *op, const wmEvent *event)
 {
        struct PaintStroke *stroke;
        int ignore_background_click;
@@ -4584,7 +4584,7 @@ static int sculpt_dynamic_topology_toggle_exec(bContext *C, wmOperator *UNUSED(o
        return OPERATOR_FINISHED;
 }
 
-static int sculpt_dynamic_topology_toggle_invoke(bContext *C, wmOperator *op, wmEvent *UNUSED(event))
+static int sculpt_dynamic_topology_toggle_invoke(bContext *C, wmOperator *op, const wmEvent *UNUSED(event))
 {
        Object *ob = CTX_data_active_object(C);
        Mesh *me = ob->data;