From a0c427076f56d7def9b5994ab7b7d2a9015805b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9a=20Saviot?= Date: Thu, 5 Jul 2018 10:59:19 +0200 Subject: [PATCH] [apps/claculation] Remove duplicate layout reference --- apps/calculation/edit_expression_controller.cpp | 3 +-- apps/calculation/edit_expression_controller.h | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/apps/calculation/edit_expression_controller.cpp b/apps/calculation/edit_expression_controller.cpp index 72f238d33..6c3d19a3d 100644 --- a/apps/calculation/edit_expression_controller.cpp +++ b/apps/calculation/edit_expression_controller.cpp @@ -13,8 +13,7 @@ namespace Calculation { EditExpressionController::ContentView::ContentView(Responder * parentResponder, TableView * subview, TextFieldDelegate * textFieldDelegate, LayoutFieldDelegate * layoutFieldDelegate) : View(), m_mainView(subview), - m_layoutR(Poincare::HorizontalLayoutRef()), - m_expressionField(parentResponder, m_textBody, k_bufferLength, m_layoutR, textFieldDelegate, layoutFieldDelegate) + m_expressionField(parentResponder, m_textBody, k_bufferLength, Poincare::HorizontalLayoutRef(), textFieldDelegate, layoutFieldDelegate) { m_textBody[0] = 0; } diff --git a/apps/calculation/edit_expression_controller.h b/apps/calculation/edit_expression_controller.h index fb8837eb0..8a2880f2c 100644 --- a/apps/calculation/edit_expression_controller.h +++ b/apps/calculation/edit_expression_controller.h @@ -47,7 +47,6 @@ private: static constexpr int k_bufferLength = TextField::maxBufferSize(); TableView * m_mainView; char m_textBody[k_bufferLength]; - Poincare::LayoutRef m_layoutR; ExpressionField m_expressionField; }; View * loadView() override;