[poincare] Token: initialize text to ""

This commit is contained in:
Léa Saviot
2018-11-19 17:44:10 +01:00
committed by Émilie Feral
parent 4d54834815
commit 8101847d65

View File

@@ -49,7 +49,7 @@ public:
Undefined
};
Token(Type type) : m_type(type) {};
Token(Type type) : m_type(type), m_text(0) {};
Type type() const { return m_type; }
bool is(Type t) const { return m_type == t; }