Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
DP3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
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
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ResearchAndDevelopment
DP3
Commits
364d792b
Commit
364d792b
authored
2 years ago
by
Mark de Wever
Browse files
Options
Downloads
Plain Diff
Merge branch 'avoid-temporaries' into 'master'
Avoid tempories in a range-based for loop See merge request
!814
parents
3c11a04b
3fea9d2a
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!814
Avoid tempories in a range-based for loop
Pipeline
#38864
passed
2 years ago
Stage: versioning
Stage: prepare
Stage: build
Stage: linting
Stage: test
Changes
2
Pipelines
3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
common/ParameterRecord.cc
+1
-1
1 addition, 1 deletion
common/ParameterRecord.cc
common/ParameterSet.cc
+1
-1
1 addition, 1 deletion
common/ParameterSet.cc
with
2 additions
and
2 deletions
common/ParameterRecord.cc
+
1
−
1
View file @
364d792b
...
...
@@ -13,7 +13,7 @@ namespace common {
std
::
ostream
&
operator
<<
(
std
::
ostream
&
os
,
const
ParameterRecord
&
record
)
{
bool
first
=
true
;
os
<<
'{'
;
for
(
const
std
::
pair
<
std
::
string
,
ParameterValue
>&
entry
:
record
)
{
for
(
const
std
::
pair
<
const
std
::
string
,
ParameterValue
>&
entry
:
record
)
{
if
(
first
)
{
first
=
false
;
}
else
{
...
...
This diff is collapsed.
Click to expand it.
common/ParameterSet.cc
+
1
−
1
View file @
364d792b
...
...
@@ -71,7 +71,7 @@ blob::BlobOStream& operator<<(blob::BlobOStream& stream,
const
ParameterSet
&
set
)
{
stream
.
putStart
(
"ParameterSet"
,
1
);
stream
<<
static_cast
<
std
::
uint32_t
>
(
set
.
size
());
for
(
const
std
::
pair
<
std
::
string
,
ParameterValue
>&
entry
:
set
)
{
for
(
const
std
::
pair
<
const
std
::
string
,
ParameterValue
>&
entry
:
set
)
{
stream
<<
entry
.
first
<<
entry
.
second
.
get
();
}
stream
.
putEnd
();
...
...
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