diff options
Autocommit at 28.05.2022 @ 16:54
1 files changed, 3 insertions, 1 deletions
| -rw-r--r-- | src/Models/Table.cpp | 4 |
diff --git a/src/Models/Table.cpp b/src/Models/Table.cpp index 1d98f5b..6e367bc 100644 --- a/src/Models/Table.cpp +++ b/src/Models/Table.cpp @@ -1,5 +1,7 @@ #include "Table.h" Table::Table(unsigned rows, unsigned cols) { - cells = List<List<Cell>>(rows); + cells = new Cell*[rows]; + for (unsigned i = 0; i < rows; i++) + cells[i] = new Cell[cols]; } |
