diff options
Diffstat (limited to 'src/Model/Grid.cpp')
| -rw-r--r-- | src/Model/Grid.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Model/Grid.cpp b/src/Model/Grid.cpp index cc9cdb1..103b95f 100644 --- a/src/Model/Grid.cpp +++ b/src/Model/Grid.cpp @@ -5,15 +5,15 @@ Grid::Grid(int size) { //Create Vector m_size = size; - m_table = std::vector<std::vector<Cell*> >(size); + m_table = std::vector<std::vector<Cell<StringElement>*> >(size); //Init all of line and cell for(int i = 0 ; i < size ; i++) { - m_table[i] = std::vector<Cell*>(size); + m_table[i] = std::vector<Cell<StringElement>*>(size); for (int j = 0 ; j < size ; j++) { - Cell * cell = new Cell(); + Cell<StringElement> * cell = new Cell<StringElement>(""); m_table[i][j] = cell; } } @@ -72,7 +72,7 @@ bool Grid::gridIsFull() return isFull; } -void Grid::setCell(int i, int j, Cell *cell) +void Grid::setCell(int i, int j, Cell<StringElement> *cell) { if (i >= 0 && i < m_size && j >= 0 && j < m_size) { |
