projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dictionary: Make dict_get_weight_format() return by value, not pointer.
[pspp]
/
src
/
output
/
pivot-table.c
diff --git
a/src/output/pivot-table.c
b/src/output/pivot-table.c
index bec8638bd03a037a3a096b2209968e6d0999486e..c6197beb04dde747307cc757169b00836f69a8cc 100644
(file)
--- a/
src/output/pivot-table.c
+++ b/
src/output/pivot-table.c
@@
-1368,19
+1368,17
@@
pivot_table_set_weight_var (struct pivot_table *table,
const struct variable *wv)
{
if (wv)
const struct variable *wv)
{
if (wv)
- pivot_table_set_weight_format (table, var_get_print_format (wv));
+ pivot_table_set_weight_format (table,
*
var_get_print_format (wv));
}
/* Sets the format used for PIVOT_RC_COUNT cells to WFMT, which should be the
}
/* Sets the format used for PIVOT_RC_COUNT cells to WFMT, which should be the
- format for the dictionary whose data or statistics are being put into TABLE.
-
- This has no effect if WFMT is NULL. */
+ format for the dictionary whose data or statistics are being put into
+ TABLE. */
void
pivot_table_set_weight_format (struct pivot_table *table,
void
pivot_table_set_weight_format (struct pivot_table *table,
- const struct fmt_spec
*
wfmt)
+ const struct fmt_spec wfmt)
{
{
- if (wfmt)
- table->weight_format = *wfmt;
+ table->weight_format = wfmt;
}
/* Returns true if TABLE has no cells, false otherwise. */
}
/* Returns true if TABLE has no cells, false otherwise. */