table-item: Remove barely used parameters from table_item_create().
[pspp] / src / output / pivot-output.c
index ae12c4dea391e51358a97de2ca85df32fa040c24..1488519ee270e46290dd9dd5588f0517bac1c4e8 100644 (file)
@@ -455,7 +455,10 @@ pivot_table_submit_layer (const struct pivot_table *pt,
   free (column_enumeration);
   free (row_enumeration);
 
-  struct table_item *ti = table_item_create (table, NULL, NULL, pt->notes);
+  struct table_item *ti = table_item_create (table);
+
+  if (pt->notes)
+    table_item_set_notes (ti, pt->notes);
 
   if (pt->title)
     {