Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2021-07-05 14:41:45 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-07-05 15:02:57 +0300
commit6eb8340ef45a2bc4d28db5430f1cf9e890c93c3e (patch)
tree0677f49caf9604e12c3e34a02d10775c837655ea /source/blender/editors
parent416e006a2aee09a6354fad9aec6a3f44f9f758b8 (diff)
Cleanup: use const arguments
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/space_image/image_ops.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/editors/space_image/image_ops.c b/source/blender/editors/space_image/image_ops.c
index b4e1f1ec9fc..3e8ac060862 100644
--- a/source/blender/editors/space_image/image_ops.c
+++ b/source/blender/editors/space_image/image_ops.c
@@ -2738,7 +2738,8 @@ static int image_flip_exec(bContext *C, wmOperator *op)
const int source_pixel_x = use_flip_x ? size_x - x - 1 : x;
const int source_pixel_y = use_flip_y ? size_y - y - 1 : y;
- float *source_pixel = &orig_float_pixels[4 * (source_pixel_x + source_pixel_y * size_x)];
+ const float *source_pixel =
+ &orig_float_pixels[4 * (source_pixel_x + source_pixel_y * size_x)];
float *target_pixel = &float_pixels[4 * (x + y * size_x)];
copy_v4_v4(target_pixel, source_pixel);
@@ -2758,7 +2759,8 @@ static int image_flip_exec(bContext *C, wmOperator *op)
const int source_pixel_x = use_flip_x ? size_x - x - 1 : x;
const int source_pixel_y = use_flip_y ? size_y - y - 1 : y;
- char *source_pixel = &orig_char_pixels[4 * (source_pixel_x + source_pixel_y * size_x)];
+ const char *source_pixel =
+ &orig_char_pixels[4 * (source_pixel_x + source_pixel_y * size_x)];
char *target_pixel = &char_pixels[4 * (x + y * size_x)];
copy_v4_v4_char(target_pixel, source_pixel);