diff options
| author | krilius <ulrich.lejoyeux@gmail.com> | 2015-04-29 20:52:18 +0400 |
|---|---|---|
| committer | krilius <ulrich.lejoyeux@gmail.com> | 2015-04-29 20:52:18 +0400 |
| commit | e241abc9df586cce683d6ae89e1d02c13084a10f (patch) | |
| tree | 2bafd2e87d26347bb487b04187c7b5ad0aab702d /src/Model/Grid.cpp | |
| parent | 9fbd4e0fedea42a206843981dffeb87095797581 (diff) | |
bug sous osx
Diffstat (limited to 'src/Model/Grid.cpp')
| -rw-r--r-- | src/Model/Grid.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Model/Grid.cpp b/src/Model/Grid.cpp index d7d3f15..ade3f74 100644 --- a/src/Model/Grid.cpp +++ b/src/Model/Grid.cpp @@ -1,9 +1,9 @@ #include "Grid.hpp" -/* + Grid::Grid(int size) { - m_table = std::vector<std::vector<Cell*>>(size); + m_table = std::vector<std::vector<Cell*> >(size); for(int i = 0 ; i < size ; i++) { m_table[i] = std::vector<Cell*>(size); @@ -19,20 +19,20 @@ Grid::~Grid() { for(int i = 0 ; i < m_table.size() ; i++) { - for(int i = 0 ; j < m_table[i].size() ; j++) + for(int j = 0 ; j < m_table[i].size() ; j++) delete m_table[i][j]; } } -void Grid::description() +void Grid::afficher() { for(int i = 0 ; i < m_table.size() ; i++) { - for(int j = 0 ; j < m_table[i].size() ; i++) + for(int j = 0 ; j < m_table[i].size() ; j++) { std::cout << m_table[i][j]->description(); } std::cout << std::endl; } } -*/ + |
