[gimp] app: make the points array const in gimp_channel_select_polygon()



commit c3766b610929ff283fcf33856827d213671b0f95
Author: Michael Natterer <mitch gimp org>
Date:   Fri Jun 23 01:38:30 2017 +0200

    app: make the points array const in gimp_channel_select_polygon()

 app/core/gimpchannel-select.c |   20 ++++++++++----------
 app/core/gimpchannel-select.h |    2 +-
 2 files changed, 11 insertions(+), 11 deletions(-)
---
diff --git a/app/core/gimpchannel-select.c b/app/core/gimpchannel-select.c
index 9da4049..c17bdbc 100644
--- a/app/core/gimpchannel-select.c
+++ b/app/core/gimpchannel-select.c
@@ -260,16 +260,16 @@ gimp_channel_select_scan_convert (GimpChannel     *channel,
 }
 
 void
-gimp_channel_select_polygon (GimpChannel    *channel,
-                             const gchar    *undo_desc,
-                             gint            n_points,
-                             GimpVector2    *points,
-                             GimpChannelOps  op,
-                             gboolean        antialias,
-                             gboolean        feather,
-                             gdouble         feather_radius_x,
-                             gdouble         feather_radius_y,
-                             gboolean        push_undo)
+gimp_channel_select_polygon (GimpChannel       *channel,
+                             const gchar       *undo_desc,
+                             gint               n_points,
+                             const GimpVector2 *points,
+                             GimpChannelOps     op,
+                             gboolean           antialias,
+                             gboolean           feather,
+                             gdouble            feather_radius_x,
+                             gdouble            feather_radius_y,
+                             gboolean           push_undo)
 {
   GimpScanConvert *scan_convert;
 
diff --git a/app/core/gimpchannel-select.h b/app/core/gimpchannel-select.h
index ac6e5fb..3db28ef 100644
--- a/app/core/gimpchannel-select.h
+++ b/app/core/gimpchannel-select.h
@@ -72,7 +72,7 @@ void   gimp_channel_select_scan_convert (GimpChannel         *channel,
 void   gimp_channel_select_polygon      (GimpChannel         *channel,
                                          const gchar         *undo_desc,
                                          gint                 n_points,
-                                         GimpVector2         *points,
+                                         const GimpVector2   *points,
                                          GimpChannelOps       op,
                                          gboolean             antialias,
                                          gboolean             feather,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]