[gimp/goat-invasion: 132/241] app: all Babls used by GIMP are now const



commit d679791845c6552879bf865e7bd4cd79e179b52d
Author: Ãyvind KolÃs <pippin gimp org>
Date:   Sun Mar 18 16:48:42 2012 +0000

    app: all Babls used by GIMP are now const

 app/core/gimpimage-private.h         |    4 ++--
 app/gegl/gimpoperationcagecoefcalc.c |    3 ++-
 2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/app/core/gimpimage-private.h b/app/core/gimpimage-private.h
index 913b6fe..97dcc46 100644
--- a/app/core/gimpimage-private.h
+++ b/app/core/gimpimage-private.h
@@ -50,8 +50,8 @@ struct _GimpImagePrivate
   guchar            *colormap;              /*  colormap (for indexed)       */
   gint               n_colors;              /*  # of colors (for indexed)    */
   GimpPalette       *palette;               /*  palette of colormap          */
-  Babl              *babl_palette_rgb;      /*  palette's RGB Babl format    */
-  Babl              *babl_palette_rgba;     /*  palette's RGBA Babl format   */
+  const Babl        *babl_palette_rgb;      /*  palette's RGB Babl format    */
+  const Babl        *babl_palette_rgba;     /*  palette's RGBA Babl format   */
 
   gint               dirty;                 /*  dirty flag -- # of ops       */
   guint              dirty_time;            /*  time when image became dirty */
diff --git a/app/gegl/gimpoperationcagecoefcalc.c b/app/gegl/gimpoperationcagecoefcalc.c
index 30e8c9e..d6370ea 100644
--- a/app/gegl/gimpoperationcagecoefcalc.c
+++ b/app/gegl/gimpoperationcagecoefcalc.c
@@ -196,7 +196,8 @@ gimp_operation_cage_coef_calc_process (GeglOperation       *operation,
   GimpOperationCageCoefCalc *occc   = GIMP_OPERATION_CAGE_COEF_CALC (operation);
   GimpCageConfig            *config = GIMP_CAGE_CONFIG (occc->config);
 
-  Babl *format = babl_format_n (babl_type ("float"), 2 * gimp_cage_config_get_n_points (config));
+  const Babl *format = babl_format_n (babl_type ("float"),
+                                      2 * gimp_cage_config_get_n_points (config));
 
   GeglBufferIterator *it;
   guint               n_cage_vertices;



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