]> gitweb.michael.orlitzky.com - libsvgtiny-pixbuf.git/commitdiff
io-svg.c: constify some arguments.
authorMichael Orlitzky <michael@orlitzky.com>
Mon, 7 Aug 2023 02:01:59 +0000 (22:01 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Mon, 7 Aug 2023 02:01:59 +0000 (22:01 -0400)
io-svg.c

index 535b1f7dc928b96b108dc445d2ba06683fb4d544..2d4322716d2a869c26a7f9205c98831e4da8ad4e 100644 (file)
--- a/io-svg.c
+++ b/io-svg.c
@@ -118,7 +118,7 @@ static void render_path(cairo_t* cr, shape_t* path) {
  *   returned; if not, @c NULL is returned. You are expected to @c
  *   svgtiny_free the result if it is valid.
  */
-static diagram_t* svgtiny_diagram_from_buffer(gchar* buffer,
+static diagram_t* svgtiny_diagram_from_buffer(const gchar* buffer,
                                               gsize bytecount,
                                               guint width,
                                               guint height,
@@ -189,7 +189,7 @@ static diagram_t* svgtiny_diagram_from_buffer(gchar* buffer,
  *   is returned; if not, @c NULL is returned. You are expected to @c
  *   cairo_destroy the result if it is valid.
  */
-static cairo_t* cairo_context_from_diagram(diagram_t* diagram) {
+static cairo_t* cairo_context_from_diagram(const diagram_t* diagram) {
   cairo_t* cr;
   cairo_surface_t* surface;
   cairo_status_t crs;
@@ -283,7 +283,7 @@ static cairo_t* cairo_context_from_diagram(diagram_t* diagram) {
  * @return If successful, a valid pointer to a @c GdkPixbuf is
  *   returned; if not, @c NULL is returned and @c error is populated.
  */
-static GdkPixbuf* gdk_pixbuf_from_svg_buffer(gchar* buffer,
+static GdkPixbuf* gdk_pixbuf_from_svg_buffer(const gchar* buffer,
                                              gsize bytecount,
                                              GError** error) {
   diagram_t* diagram;