From 5d13f960965d8dce18cc32ef71d73df76f5c8395 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sat, 28 May 2022 16:14:00 +0300 Subject: Autocommit at 28.05.2022 @ 16:14 --- src/Models/CellFormula.cpp | 2 +- src/Models/CellFormula.h | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) (limited to 'src/Models') diff --git a/src/Models/CellFormula.cpp b/src/Models/CellFormula.cpp index 3f8b07b..e488b0f 100644 --- a/src/Models/CellFormula.cpp +++ b/src/Models/CellFormula.cpp @@ -2,7 +2,7 @@ #include String CellFormula::getValueForPrint() { - Cell* a = 3; + double result = 0; return String() += value; } diff --git a/src/Models/CellFormula.h b/src/Models/CellFormula.h index cf349e0..505d305 100644 --- a/src/Models/CellFormula.h +++ b/src/Models/CellFormula.h @@ -3,10 +3,19 @@ #include "Cell.h" #include "../Generic/List/List.hpp" +#include "../Generic/Pair/Pair.hpp" class CellFormula : public Cell { + enum Op { + plus, + minus, + mult, + div, + pow, + }; + List referencedCells; - List> formula; + List> formula; String rawFormula; public: -- cgit v1.3.1-23-gd82d