aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/corelib/language/value.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/corelib/language/value.h')
-rw-r--r--src/lib/corelib/language/value.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/corelib/language/value.h b/src/lib/corelib/language/value.h
index 6b0c98dc9..f0b4c44a6 100644
--- a/src/lib/corelib/language/value.h
+++ b/src/lib/corelib/language/value.h
@@ -75,12 +75,13 @@ public:
void setNext(const ValuePtr &next);
bool createdByPropertiesBlock() const { return m_createdByPropertiesBlock; }
+ void clearCreatedByPropertiesBlock() { m_createdByPropertiesBlock = false; }
private:
Type m_type;
Item *m_definingItem;
ValuePtr m_next;
- const bool m_createdByPropertiesBlock;
+ bool m_createdByPropertiesBlock;
};
class ValueHandler
@@ -158,6 +159,7 @@ public:
const QList<Alternative> &alternatives() const { return m_alternatives; }
void setAlternatives(const QList<Alternative> &alternatives) { m_alternatives = alternatives; }
void addAlternative(const Alternative &alternative) { m_alternatives.append(alternative); }
+ void clearAlternatives();
void setDefiningItem(Item *item);