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>2020-02-13 06:01:52 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-02-13 06:14:33 +0300
commitd1bd33407da3183335805beec561c18e6f5aa6e0 (patch)
tree564bd2c8b1d2c99ff3ad9d76628efa3ec04c292b /source/blender/editors/mask/mask_select.c
parentf874f6817d1c793da4fd423a3c8bf0e504ebfa4a (diff)
Cleanup: pass const variables
Diffstat (limited to 'source/blender/editors/mask/mask_select.c')
-rw-r--r--source/blender/editors/mask/mask_select.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/source/blender/editors/mask/mask_select.c b/source/blender/editors/mask/mask_select.c
index 656c055a7d9..9e1aaa5e6f4 100644
--- a/source/blender/editors/mask/mask_select.c
+++ b/source/blender/editors/mask/mask_select.c
@@ -53,7 +53,7 @@
* \{ */
/* 'check' select */
-bool ED_mask_spline_select_check(MaskSpline *spline)
+bool ED_mask_spline_select_check(const MaskSpline *spline)
{
int i;
@@ -68,13 +68,13 @@ bool ED_mask_spline_select_check(MaskSpline *spline)
return false;
}
-bool ED_mask_layer_select_check(MaskLayer *mask_layer)
+bool ED_mask_layer_select_check(const MaskLayer *mask_layer)
{
if (mask_layer->restrictflag & (MASK_RESTRICT_VIEW | MASK_RESTRICT_SELECT)) {
return false;
}
- for (MaskSpline *spline = mask_layer->splines.first; spline; spline = spline->next) {
+ for (const MaskSpline *spline = mask_layer->splines.first; spline; spline = spline->next) {
if (ED_mask_spline_select_check(spline)) {
return true;
}
@@ -83,9 +83,10 @@ bool ED_mask_layer_select_check(MaskLayer *mask_layer)
return false;
}
-bool ED_mask_select_check(Mask *mask)
+bool ED_mask_select_check(const Mask *mask)
{
- for (MaskLayer *mask_layer = mask->masklayers.first; mask_layer; mask_layer = mask_layer->next) {
+ for (const MaskLayer *mask_layer = mask->masklayers.first; mask_layer;
+ mask_layer = mask_layer->next) {
if (ED_mask_layer_select_check(mask_layer)) {
return true;
}