From ad65ce2617d8666172452fccd3e582177d48d058 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9a=20Saviot?= Date: Mon, 23 Apr 2018 11:26:30 +0200 Subject: [PATCH] [apps/calculation] Removed overrided ExpressionField constructor. Change-Id: Id893bb89c9f1282b7fc9e94acc0324a66c749a0c --- apps/calculation/expression_field.cpp | 6 ------ apps/calculation/expression_field.h | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/apps/calculation/expression_field.cpp b/apps/calculation/expression_field.cpp index 06ef5d80d..37c2c4151 100644 --- a/apps/calculation/expression_field.cpp +++ b/apps/calculation/expression_field.cpp @@ -2,12 +2,6 @@ namespace Calculation { -ExpressionField::ExpressionField(Responder * parentResponder, char * textBuffer, int textBufferLength, Poincare::ExpressionLayout * layout, TextFieldDelegate * textFieldDelegate, ExpressionLayoutFieldDelegate * expressionLayoutFieldDelegate) : - ::ExpressionField(parentResponder, textBuffer, textBufferLength, layout, textFieldDelegate, expressionLayoutFieldDelegate) -{ - setEditing(true); -} - bool ExpressionField::handleEvent(Ion::Events::Event event) { if (event == Ion::Events::Back) { return false; diff --git a/apps/calculation/expression_field.h b/apps/calculation/expression_field.h index 34ba89ace..a7fe0e20e 100644 --- a/apps/calculation/expression_field.h +++ b/apps/calculation/expression_field.h @@ -7,7 +7,7 @@ namespace Calculation { class ExpressionField : public ::ExpressionField { public: - ExpressionField(Responder * parentResponder, char * textBuffer, int textBufferLength, Poincare::ExpressionLayout * layout, TextFieldDelegate * textFieldDelegate, ExpressionLayoutFieldDelegate * expressionLayoutFieldDelegate); + using ::ExpressionField::ExpressionField; protected: bool handleEvent(Ion::Events::Event event) override; };