[gegl] transform-core.c: Babl format assignment at const declaration



commit fa27ee54cc1988d0e7eda346174104315984dafa
Author: Nicolas Robidoux <nrobidoux git gnome org>
Date:   Sun Dec 9 18:58:15 2012 -0500

    transform-core.c: Babl format assignment at const declaration

 operations/transform/transform-core.c |   17 ++++-------------
 1 files changed, 4 insertions(+), 13 deletions(-)
---
diff --git a/operations/transform/transform-core.c b/operations/transform/transform-core.c
index 8193b2b..bde2ca2 100644
--- a/operations/transform/transform-core.c
+++ b/operations/transform/transform-core.c
@@ -792,16 +792,11 @@ transform_affine (GeglBuffer  *dest,
                        v_float,
                        base_u,
                        base_v;
-
-  const Babl          *format;
-
-  gint                 dest_pixels;
-
-  gint                 flip_x = 0,
+  const Babl          *format = babl_format ("RaGaBaA float");
+  gint                 dest_pixels,
+                       flip_x = 0,
                        flip_y = 0;
 
-  format = babl_format ("RaGaBaA float");
-
   /*
    * XXX: fast paths as existing in files in the same dir as
    *      transform.c should probably be hooked in here, and bailing
@@ -1019,13 +1014,9 @@ transform_generic (GeglBuffer  *dest,
                        u_float,
                        v_float,
                        w_float;
-
-  const Babl          *format;
-
+  const Babl          *format = babl_format ("RaGaBaA float");
   gint                 dest_pixels;
 
-  format = babl_format ("RaGaBaA float");
-
   g_object_get (dest, "pixels", &dest_pixels, NULL);
   dest_extent = gegl_buffer_get_extent (dest);
 



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