summaryrefslogtreecommitdiff
path: root/include/object.h
diff options
context:
space:
mode:
authorMartijn Otto <martijn.otto@copernica.com>2016-05-20 11:16:12 +0200
committerMartijn Otto <martijn.otto@copernica.com>2016-05-20 11:16:12 +0200
commit72618921adee29022038dd5fbd130f922d5078bc (patch)
tree8f83d433382ed7f808c29994cdd79981e48eab40 /include/object.h
parent248318dd608ede0b597951ff45c22164ee4f71d0 (diff)
Fixed segfault during Value::~Value
Diffstat (limited to 'include/object.h')
-rw-r--r--include/object.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/object.h b/include/object.h
index 745b7c6..56d7e83 100644
--- a/include/object.h
+++ b/include/object.h
@@ -106,7 +106,7 @@ public:
* Change the internal type of the variable
* @param Type
*/
- virtual Value &setType(Type type) override
+ virtual Value &setType(Type type) & override
{
// throw exception if things are going wrong
if (type != Type::Object) throw FatalError("Changing type of a fixed object variable");