Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CellulutLO21
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LO21_Pin_Noir_Boucher_Bouri_Detree
CellulutLO21
Commits
2fe19a9d
Commit
2fe19a9d
authored
3 years ago
by
Yann Boucher
Browse files
Options
Downloads
Patches
Plain Diff
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
3 years ago
Stage: test
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/history.h
+1
-1
1 addition, 1 deletion
include/history.h
src/history.cpp
+1
-1
1 addition, 1 deletion
src/history.cpp
with
2 additions
and
2 deletions
include/history.h
+
1
−
1
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
()
{
...
...
This diff is collapsed.
Click to expand it.
src/history.cpp
+
1
−
1
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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment