Descriptives: Constness
authorJohn Darrington <john@darrington.wattle.id.au>
Sat, 29 Jun 2019 05:57:34 +0000 (07:57 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Sat, 29 Jun 2019 05:57:34 +0000 (07:57 +0200)
src/language/stats/descriptives.c

index 1ee9874f0fc5f0d7e7f42ebf152fd00b756310e9..e2cb058aa9048c40511b963ec1724e55121fd0ef 100644 (file)
@@ -76,7 +76,7 @@ struct dsc_trns
     size_t var_cnt;             /* Number of variables. */
     enum dsc_missing_type missing_type; /* Treatment of missing values. */
     enum mv_class exclude;      /* Classes of missing values to exclude. */
-    struct variable *filter;    /* Dictionary FILTER BY variable. */
+    const struct variable *filter;    /* Dictionary FILTER BY variable. */
     struct casereader *z_reader; /* Reader for count, mean, stddev. */
     casenumber count;            /* Number left in this SPLIT FILE group.*/
     bool ok;
@@ -780,7 +780,7 @@ static void
 calc_descriptives (struct dsc_proc *dsc, struct casereader *group,
                    struct dataset *ds)
 {
-  struct variable *filter = dict_get_filter (dataset_dict (ds));
+  const struct variable *filter = dict_get_filter (dataset_dict (ds));
   struct casereader *pass1, *pass2;
   casenumber count;
   struct ccase *c;