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
d6ff689e
Commit
d6ff689e
authored
4 years ago
by
scott snyder
Committed by
scott snyder
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
EventPrimitives: Fix cppcheck warnings.
Pass class instances by const reference, not by value.
parent
1a1ea240
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Event/EventPrimitives/EventPrimitives/EventPrimitivesToStringConverter.h
+3
-3
3 additions, 3 deletions
...itives/EventPrimitives/EventPrimitivesToStringConverter.h
with
3 additions
and
3 deletions
Event/EventPrimitives/EventPrimitives/EventPrimitivesToStringConverter.h
+
3
−
3
View file @
d6ff689e
/*
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
*/
///////////////////////////////////////////////////////////////////
...
...
@@ -40,7 +40,7 @@ namespace Amg {
}
inline
std
::
string
toString
(
const
MatrixX
&
matrix
,
int
precision
=
4
,
std
::
string
offset
=
""
){
inline
std
::
string
toString
(
const
MatrixX
&
matrix
,
int
precision
=
4
,
const
std
::
string
&
offset
=
""
){
std
::
ostringstream
sout
;
sout
<<
std
::
setiosflags
(
std
::
ios
::
fixed
)
<<
std
::
setprecision
(
precision
);
...
...
@@ -72,7 +72,7 @@ namespace Amg {
}
#ifndef XAOD_STANDALONE
inline
std
::
string
toString
(
const
CLHEP
::
HepGenMatrix
&
matrix
,
int
precision
=
4
,
std
::
string
offset
=
""
){
inline
std
::
string
toString
(
const
CLHEP
::
HepGenMatrix
&
matrix
,
int
precision
=
4
,
const
std
::
string
&
offset
=
""
){
std
::
ostringstream
sout
;
sout
<<
std
::
setiosflags
(
std
::
ios
::
fixed
)
<<
std
::
setprecision
(
precision
);
...
...
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