Website Summary Files Commits Branches @commit @diff @stats
path: root / src / Models / Table.cpp
diff options
context:
space:
mode:
1 files changed, 3 insertions, 1 deletions
-rw-r--r--src/Models/Table.cpp4
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];
}