summaryrefslogtreecommitdiff
path: root/walk.h
diff options
context:
space:
mode:
Diffstat (limited to 'walk.h')
-rw-r--r--walk.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/walk.h b/walk.h
index 39bde7f2..93a2a3b0 100644
--- a/walk.h
+++ b/walk.h
@@ -40,6 +40,9 @@ struct item_handler {
template <typename T>
class compare_items {
+ value_t left_result;
+ value_t right_result;
+
const value_expr_t * sort_order;
public:
@@ -52,9 +55,6 @@ class compare_items {
assert(left);
assert(right);
- value_t left_result;
- value_t right_result;
-
sort_order->compute(left_result, details_t(left));
sort_order->compute(right_result, details_t(right));