From 5c8f9c60efb1ac209cf1b7abaa3e59ce1552002c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9a=20Saviot?= Date: Wed, 30 May 2018 14:56:27 +0200 Subject: [PATCH] [apps/shared] Simplify StoreTitleCell constructor --- apps/shared/store_title_cell.h | 4 ++-- apps/statistics/calculation_controller.cpp | 2 +- apps/statistics/store_controller.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/shared/store_title_cell.h b/apps/shared/store_title_cell.h index 823c09c35..51e3952bf 100644 --- a/apps/shared/store_title_cell.h +++ b/apps/shared/store_title_cell.h @@ -7,8 +7,8 @@ namespace Shared { class StoreTitleCell : public BufferFunctionTitleCell { public: - StoreTitleCell(Orientation orientation, KDText::FontSize size = KDText::FontSize::Large) : - BufferFunctionTitleCell(orientation, size), + StoreTitleCell() : + BufferFunctionTitleCell(Orientation::HorizontalIndicator, KDText::FontSize::Small), m_separatorLeft(false) {} void setSeparatorLeft(bool separator); diff --git a/apps/statistics/calculation_controller.cpp b/apps/statistics/calculation_controller.cpp index 269598328..a6a3f649b 100644 --- a/apps/statistics/calculation_controller.cpp +++ b/apps/statistics/calculation_controller.cpp @@ -201,7 +201,7 @@ Responder * CalculationController::tabController() const { View * CalculationController::loadView() { for (int i = 0; i < k_numberOfSeriesTitleCells; i++) { - m_seriesTitleCells[i] = new StoreTitleCell(FunctionTitleCell::Orientation::HorizontalIndicator, KDText::FontSize::Small); + m_seriesTitleCells[i] = new StoreTitleCell(); m_seriesTitleCells[i]->setSeparatorLeft(true); } for (int i = 0; i < k_numberOfCalculationTitleCells; i++) { diff --git a/apps/statistics/store_controller.cpp b/apps/statistics/store_controller.cpp index 24026b514..887f58fc6 100644 --- a/apps/statistics/store_controller.cpp +++ b/apps/statistics/store_controller.cpp @@ -55,7 +55,7 @@ bool StoreController::setDataAtLocation(double floatBody, int columnIndex, int r View * StoreController::loadView() { for (int i = 0; i < k_numberOfTitleCells; i++) { - m_titleCells[i] = new Shared::StoreTitleCell(FunctionTitleCell::Orientation::HorizontalIndicator, KDText::FontSize::Small); + m_titleCells[i] = new Shared::StoreTitleCell(); } return Shared::StoreController::loadView(); }