[goffice] GOStyle: constify.



commit 1f8d3aad0bcf7b39622915b28b195ac31a3fd93e
Author: Morten Welinder <terra gnome org>
Date:   Sat May 10 16:52:01 2014 -0400

    GOStyle: constify.

 ChangeLog                |    4 ++++
 goffice/utils/go-style.c |    2 +-
 goffice/utils/go-style.h |    2 +-
 3 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 9cde2f1..0a79edb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2014-05-10  Morten Welinder  <terra gnome org>
+
+       * goffice/utils/go-style.c (go_style_get_marker): Constify.
+
 2014-05-10  Jean Brefort  <jean brefort normalesup org>
 
        * goffice/graph/gog-graph.c (gog_graph_view_render): don't crash when
diff --git a/goffice/utils/go-style.c b/goffice/utils/go-style.c
index 7e08055..3c1b1e6 100644
--- a/goffice/utils/go-style.c
+++ b/goffice/utils/go-style.c
@@ -1980,7 +1980,7 @@ go_style_set_marker (GOStyle *style, GOMarker *marker)
  * Returns: (transfer none): the style #GOMarker.
  **/
 GOMarker const *
-go_style_get_marker (GOStyle *style)
+go_style_get_marker (GOStyle const *style)
 {
        g_return_val_if_fail (GO_IS_STYLE (style), NULL);
 
diff --git a/goffice/utils/go-style.h b/goffice/utils/go-style.h
index 7405477..85f8700 100644
--- a/goffice/utils/go-style.h
+++ b/goffice/utils/go-style.h
@@ -131,7 +131,7 @@ void           go_style_assign              (GOStyle *dst, GOStyle const *src);
 void      go_style_apply_theme         (GOStyle *dst, GOStyle const *src,
                                         GOStyleFlag fields);
 
-GOMarker const *go_style_get_marker    (GOStyle *style);
+GOMarker const *go_style_get_marker    (GOStyle const *style);
 void            go_style_set_marker    (GOStyle *style, GOMarker *marker);
 
 void      go_style_set_font_desc       (GOStyle *style,


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