Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue 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
Peter Sherwood
athena
Commits
a1aeca78
Commit
a1aeca78
authored
4 years ago
by
scott snyder
Committed by
scott snyder
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
TileSimEvent: Fix cppcheck warning.
- Pass class instances by const reference, not by value.
parent
3f28ae45
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
TileCalorimeter/TileSimEvent/TileSimEvent/TileHit.h
+2
-2
2 additions, 2 deletions
TileCalorimeter/TileSimEvent/TileSimEvent/TileHit.h
TileCalorimeter/TileSimEvent/src/TileHit.cxx
+1
-1
1 addition, 1 deletion
TileCalorimeter/TileSimEvent/src/TileHit.cxx
with
3 additions
and
3 deletions
TileCalorimeter/TileSimEvent/TileSimEvent/TileHit.h
+
2
−
2
View file @
a1aeca78
/*
/*
Copyright (C) 2002-20
17
CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-20
20
CERN for the benefit of the ATLAS collaboration
*/
*/
//********************************************************************
//********************************************************************
...
@@ -102,7 +102,7 @@ public:
...
@@ -102,7 +102,7 @@ public:
operator
std
::
string
()
const
;
operator
std
::
string
()
const
;
/** @brief Print contents of one vector to output stream */
/** @brief Print contents of one vector to output stream */
static
void
print_to_stream
(
const
std
::
vector
<
float
>
val
,
static
void
print_to_stream
(
const
std
::
vector
<
float
>
&
val
,
const
std
::
string
&
label
,
const
std
::
string
&
label
,
std
::
ostringstream
&
text
);
std
::
ostringstream
&
text
);
...
...
This diff is collapsed.
Click to expand it.
TileCalorimeter/TileSimEvent/src/TileHit.cxx
+
1
−
1
View file @
a1aeca78
...
@@ -157,7 +157,7 @@ TileHit::operator std::string() const
...
@@ -157,7 +157,7 @@ TileHit::operator std::string() const
return
text
.
str
();
return
text
.
str
();
}
}
void
TileHit
::
print_to_stream
(
const
std
::
vector
<
float
>
val
,
void
TileHit
::
print_to_stream
(
const
std
::
vector
<
float
>
&
val
,
const
std
::
string
&
label
,
const
std
::
string
&
label
,
std
::
ostringstream
&
text
)
std
::
ostringstream
&
text
)
{
{
...
...
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