treewide: Use struct fmt_spec by value instead of pointer in most cases.
[pspp] / src / language / commands / output.c
index 38d437ae18fa9a9050c234d699b31ee9d77a0176..a3515edbddbd277be4d25b53783f8cc511294e4d 100644 (file)
@@ -86,10 +86,7 @@ cmd_output_modify (struct lexer *lexer, struct dataset *ds UNUSED)
                     goto error;
 
                  if (width <= 0)
-                   {
-                     const struct fmt_spec *dflt = settings_get_format ();
-                     width = dflt->w;
-                   }
+                    width = settings_get_format ().w;
 
                   if (!fmt_from_name (type, &fmt.type))
                     {
@@ -112,7 +109,7 @@ cmd_output_modify (struct lexer *lexer, struct dataset *ds UNUSED)
               const struct string_set_node *node;
               const char *s;
               STRING_SET_FOR_EACH (s, node, &rc_names)
-                if (!pivot_result_class_change (s, &fmt))
+                if (!pivot_result_class_change (s, fmt))
                   lex_error (lexer, _("Unknown cell class %s."), s);
             }
        }