[apps] Add comment

Change-Id: I53bdeb08625a2699408f563b0b3ed6c45744d01d
This commit is contained in:
Émilie Feral
2017-11-28 17:03:33 +01:00
parent 8874977a77
commit 01d456299f

View File

@@ -66,6 +66,8 @@ void Calculation::reset() {
void Calculation::setContent(const char * c, Context * context) {
reset();
m_input = Expression::parse(c);
/* We do not store directly the text enter by the user but its serialization
* to be able to compare it to the exact ouput text. */
m_input->writeTextInBuffer(m_inputText, sizeof(m_inputText));
m_exactOutput = input()->clone();
Expression::Simplify(&m_exactOutput, *context);