summaryrefslogtreecommitdiff
path: root/src/generic/problemresolver/incremental_expression.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/generic/problemresolver/incremental_expression.h')
-rw-r--r--src/generic/problemresolver/incremental_expression.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/generic/problemresolver/incremental_expression.h b/src/generic/problemresolver/incremental_expression.h
index 7c8fa9c5..a8ea0c3c 100644
--- a/src/generic/problemresolver/incremental_expression.h
+++ b/src/generic/problemresolver/incremental_expression.h
@@ -289,6 +289,14 @@ public:
new_child->add_parent(this);
}
+ /** \brief Set the child of this box to the child of the other box.
+ */
+ expression_box &operator=(const expression_box &other)
+ {
+ set_child(other.child);
+ return *this;
+ }
+
const cwidget::util::ref_ptr<expression<T> > &get_child() const
{
return child;