[gtk+] Remove unnecessary const



commit dd4c800542ac9a923e1bee66eb2ffddc539f40fd
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Mon Oct 23 15:23:09 2017 +0100

    Remove unnecessary const
    
    We return a scalar value, so we don't need it to be constant.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=789351

 gsk/gskrendernode.h     |    2 +-
 gsk/gskrendernodeimpl.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gsk/gskrendernode.h b/gsk/gskrendernode.h
index 2d70939..4e14038 100644
--- a/gsk/gskrendernode.h
+++ b/gsk/gskrendernode.h
@@ -117,7 +117,7 @@ const graphene_point_t * gsk_linear_gradient_node_peek_start        (GskRenderNo
 GDK_AVAILABLE_IN_3_94
 const graphene_point_t * gsk_linear_gradient_node_peek_end          (GskRenderNode            *node);
 GDK_AVAILABLE_IN_3_94
-const gsize              gsk_linear_gradient_node_get_n_color_stops (GskRenderNode            *node);
+gsize                    gsk_linear_gradient_node_get_n_color_stops (GskRenderNode            *node);
 GDK_AVAILABLE_IN_3_94
 const GskColorStop *     gsk_linear_gradient_node_peek_color_stops  (GskRenderNode            *node);
 
diff --git a/gsk/gskrendernodeimpl.c b/gsk/gskrendernodeimpl.c
index 157835f..6e502d0 100644
--- a/gsk/gskrendernodeimpl.c
+++ b/gsk/gskrendernodeimpl.c
@@ -412,7 +412,7 @@ gsk_linear_gradient_node_peek_end (GskRenderNode *node)
   return &self->end;
 }
 
-const gsize
+gsize
 gsk_linear_gradient_node_get_n_color_stops (GskRenderNode *node)
 {
   GskLinearGradientNode *self = (GskLinearGradientNode *) node;


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