Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LO21_Pin_Noir_Boucher_Bouri_Detree
CellulutLO21
Commits
2fe19a9d
Commit
2fe19a9d
authored
May 13, 2021
by
Yann Boucher
Browse files
Passage par référence constante pour pushGrid
parent
83a5a7ba
Pipeline
#77935
passed with stages
in 16 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
include/history.h
View file @
2fe19a9d
...
...
@@ -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
()
{
...
...
src/history.cpp
View file @
2fe19a9d
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment