Mark context as const when it's possible and avoid typecasts from const bContext...
[blender.git] / source / blender / editors / mask / mask_draw.c
index 678186f0e8c3fe803764196b67cc3c0f67d1dfb8..71d3caf74c50b6548ec1c73a19689e89d3b97335 100644 (file)
@@ -441,10 +441,7 @@ void ED_mask_draw(const bContext *C,
        if (!mask)
                return;
 
-       /* TODO: for now, in the future better to make sure all utility functions
-        *       are using const specifier for non-changing pointers
-        */
-       ED_mask_size((bContext *)C, &width, &height);
+       ED_mask_size(C, &width, &height);
 
        draw_masklays(mask, draw_flag, draw_type, width, height);
 }