treewide: Use struct fmt_spec by value instead of pointer in most cases.
[pspp] / src / ui / gui / psppire-dialog-action-indep-samps.c
index 31b8cc78c98ede6dc62ccb3f75bc7e57ca243e98..974c1e97f9935ba145859aa34b8dbd9c16c71b22 100644 (file)
@@ -384,8 +384,8 @@ generate_syntax (const PsppireDialogAction *a)
 
         struct string strx;
         ds_init_empty (&strx);
-        syntax_gen_value (&strx, val, var_get_width (act->grp_var),
-                          var_get_print_format (act->grp_var));
+        struct fmt_spec f = var_get_print_format (act->grp_var);
+        syntax_gen_value (&strx, val, var_get_width (act->grp_var), &f);
 
         g_string_append (str, ds_cstr (&strx));
         ds_destroy (&strx);
@@ -399,8 +399,9 @@ generate_syntax (const PsppireDialogAction *a)
             struct string strx;
             ds_init_empty (&strx);
 
+            struct fmt_spec f = var_get_print_format (act->grp_var);
             syntax_gen_value (&strx, &act->grp_val[1], var_get_width (act->grp_var),
-                              var_get_print_format (act->grp_var));
+                              &f);
 
             g_string_append (str, ds_cstr (&strx));
             ds_destroy (&strx);