Skip to content
Snippets Groups Projects
Commit 2fe19a9d authored by Yann Boucher's avatar Yann Boucher
Browse files

Passage par référence constante pour pushGrid

parent 83a5a7ba
No related branches found
No related tags found
No related merge requests found
Pipeline #77935 passed
......@@ -35,7 +35,7 @@ public:
unsigned int get_nbMax()const{return nbMax;}
void pushGrid(Grid g);
void pushGrid(const Grid& g);
Grid popGrid();
Grid topGrid()
{
......
......@@ -17,7 +17,7 @@ History::History(unsigned int nbM){
nbMax=nbM;
}
void History::pushGrid(Grid g){
void History::pushGrid(const Grid &g){
if(tab.size()==nbMax){
tab.pop_front();
tab.push_back(g);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment