spv-legacy-decoder: Make 'data' parameter to decode_spvdx_table() const.
authorBen Pfaff <blp@cs.stanford.edu>
Thu, 14 Jan 2021 05:10:04 +0000 (21:10 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Mon, 25 Jan 2021 00:54:48 +0000 (16:54 -0800)
src/output/spv/spv-legacy-decoder.c
src/output/spv/spv-legacy-decoder.h

index 099d96cbcc8077ed63fd8db6fe77e7ad29460a86..7641d78ed05c1ec334f3c1c580321aef22942658 100644 (file)
@@ -761,7 +761,7 @@ static char BAD_REFERENCE;
 
 static char * WARN_UNUSED_RESULT
 decode_spvdx_source_variable (const struct spvxml_node *node,
-                              struct spv_data *data,
+                              const struct spv_data *data,
                               struct hmap *series_map)
 {
   const struct spvdx_source_variable *sv = spvdx_cast_source_variable (node);
@@ -1768,7 +1768,7 @@ format_map_destroy (struct hmap *format_map)
 char * WARN_UNUSED_RESULT
 decode_spvdx_table (const struct spvdx_visualization *v, const char *subtype,
                     const struct pivot_table_look *look,
-                    struct spv_data *data, struct pivot_table **outp)
+                    const struct spv_data *data, struct pivot_table **outp)
 {
   struct pivot_table *table = pivot_table_create__ (NULL, subtype);
 
index 0b88811a6842717dc08d7cc7576ab284d7b87c24..bc1ffe1807acee23292c9f87773eb9d70af9fd9c 100644 (file)
@@ -31,7 +31,7 @@ struct pivot_table_look;
 char *decode_spvdx_table (const struct spvdx_visualization *,
                           const char *subtype,
                           const struct pivot_table_look *,
-                          struct spv_data *,
+                          const struct spv_data *,
                           struct pivot_table **outp)
   WARN_UNUSED_RESULT;