projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b55442
)
psppire-var-view: Fix constness error.
author
Ben Pfaff
<blp@cs.stanford.edu>
Wed, 6 Jan 2016 01:53:29 +0000
(17:53 -0800)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Wed, 6 Jan 2016 01:53:29 +0000
(17:53 -0800)
src/ui/gui/psppire-var-view.c
patch
|
blob
|
history
diff --git
a/src/ui/gui/psppire-var-view.c
b/src/ui/gui/psppire-var-view.c
index 0e72cb3717d784c1df0f7a0fba1d6561a72d0692..13db8e60e4c0cd2c78866cc4ac2cc07e9c625b18 100644
(file)
--- a/
src/ui/gui/psppire-var-view.c
+++ b/
src/ui/gui/psppire-var-view.c
@@
-21,6
+21,7
@@
#include "psppire-var-ptr.h"
#include "psppire-select-dest.h"
+#include <libpspp/cast.h>
#include <libpspp/str.h>
#include <data/variable.h>
@@
-388,7
+389,7
@@
psppire_var_view_list_names (PsppireVarView *vv, gint column)
do
{
const struct variable *var = psppire_var_view_get_variable (vv, column, &iter);
- list = g_slist_prepend (list,
var
);
+ list = g_slist_prepend (list,
CONST_CAST (struct variable *, var)
);
}
while (psppire_var_view_get_iter_next (vv, &iter));
}