diff options
Autocommit at 28.05.2022 @ 18:49
3 files changed, 9 insertions, 2 deletions
| -rw-r--r-- | src/Models/CellFormula.cpp | 4 | ||||
| -rw-r--r-- | src/Models/Table.cpp | 5 | ||||
| -rw-r--r-- | src/Models/Table.h | 2 |
diff --git a/src/Models/CellFormula.cpp b/src/Models/CellFormula.cpp index 21de3ec..d1c7c90 100644 --- a/src/Models/CellFormula.cpp +++ b/src/Models/CellFormula.cpp @@ -14,7 +14,9 @@ double CellFormula::calculate(unsigned index) { case minus: return lval - calculate(index++); case mult: return lval * calculate(index++); case div: return lval / calculate(index++); - default: return lval; + case pow: + case none: + default: return lval; } } diff --git a/src/Models/Table.cpp b/src/Models/Table.cpp index af72875..5840a6e 100644 --- a/src/Models/Table.cpp +++ b/src/Models/Table.cpp @@ -34,3 +34,8 @@ void Table::putCell(unsigned row, unsigned col, const char* rawValue) { cells[row][col] = newCell; } + +String Table::getAllCells() const { + //TODO + return String(); +} diff --git a/src/Models/Table.h b/src/Models/Table.h index 9fea34a..1554905 100644 --- a/src/Models/Table.h +++ b/src/Models/Table.h @@ -12,7 +12,7 @@ public: Table(unsigned rows, unsigned cols); void putCell(unsigned row, unsigned col, const char* rawValue); - String getAllCells(); + String getAllCells() const; }; #endif |
