PsppireDict: Constness
authorJohn Darrington <john@darrington.wattle.id.au>
Sat, 29 Jun 2019 06:06:11 +0000 (08:06 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Sat, 29 Jun 2019 06:06:11 +0000 (08:06 +0200)
src/ui/gui/psppire-dict.c

index 84a89527e807dced67884c924745b9c9e10ddb60..6331b668c1ce982d9488ca8ac908cd8e9a7ef7f9 100644 (file)
@@ -379,7 +379,7 @@ psppire_dict_new_from_dict (struct dictionary *d)
 void
 psppire_dict_replace_dictionary (PsppireDict *dict, struct dictionary *d)
 {
-  struct variable *var =  dict_get_weight (d);
+  const struct variable *var =  dict_get_weight (d);
 
   struct dictionary *old_dict = dict->dict;