Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
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
atlas
athena
Merge requests
!69476
SGTools: Fix cppcheck warning.
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
SGTools: Fix cppcheck warning.
ssnyder/athena:cppcheck.SGTools-20240304
into
main
Overview
2
Commits
1
Pipelines
1
Changes
1
Merged
Scott Snyder
requested to merge
ssnyder/athena:cppcheck.SGTools-20240304
into
main
1 year ago
Overview
2
Commits
1
Pipelines
1
Changes
1
Expand
Prefer range-for.
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
e44df023
1 commit,
1 year ago
1 file
+
7
−
11
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Control/SGTools/src/DataStore.cxx
+
7
−
11
Options
/*
Copyright (C) 2002-202
3
CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-202
4
CERN for the benefit of the ATLAS collaboration
*/
#include
"SGTools/DataStore.h"
@@ -118,22 +118,18 @@ void DataStore::clearStore(bool force, bool hard, MsgStream* /*pmlog*/)
void
DataStore
::
keys
(
const
CLID
&
id
,
std
::
vector
<
std
::
string
>&
vkeys
,
bool
includeAlias
,
bool
onlyValid
)
{
vector
<
string
>
tkeys
;
ProxyMap
&
pmap
=
m_storeMap
[
id
];
ConstProxyIterator
p_iter
=
pmap
.
begin
();
for
(;
p_iter
!=
pmap
.
end
();
p_iter
++
)
{
vkeys
.
clear
();
for
(
const
ProxyMap
::
value_type
&
p
:
m_storeMap
[
id
])
{
bool
includeProxy
(
true
);
if
(
onlyValid
)
includeProxy
=
p
_iter
->
second
->
isValid
();
if
(
onlyValid
)
includeProxy
=
p
.
second
->
isValid
();
if
(
includeAlias
)
{
if
(
includeProxy
)
t
keys
.
push_back
(
p
_iter
->
first
);
if
(
includeProxy
)
v
keys
.
push_back
(
p
.
first
);
}
else
{
if
(
p
_iter
->
first
==
p
_iter
->
second
->
name
()
&&
includeProxy
)
t
keys
.
push_back
(
p
_iter
->
first
);
if
(
p
.
first
==
p
.
second
->
name
()
&&
includeProxy
)
v
keys
.
push_back
(
p
.
first
);
}
}
vkeys
.
swap
(
tkeys
);
return
;
}
//////////////////////////////////////////////////////////////
Loading