Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mantid
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review 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
mantidproject
mantid
Commits
bde3091a
Commit
bde3091a
authored
7 years ago
by
Samuel Jackson
Browse files
Options
Downloads
Patches
Plain Diff
Refs #21130 Use const reference instead
parent
b7653bed
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Framework/HistogramData/test/HistogramIteratorTest.h
+5
-5
5 additions, 5 deletions
Framework/HistogramData/test/HistogramIteratorTest.h
with
5 additions
and
5 deletions
Framework/HistogramData/test/HistogramIteratorTest.h
+
5
−
5
View file @
bde3091a
...
...
@@ -293,7 +293,7 @@ public:
void
test_convert_counts_to_frequency_once_per_histogram
()
{
double
total
=
0
;
for
(
size_t
i
=
0
;
i
<
nHists
;
i
++
)
{
auto
frequencies
=
m_hist
.
frequencies
();
const
auto
&
frequencies
=
m_hist
.
frequencies
();
for
(
auto
&
frequency
:
frequencies
)
total
+=
frequency
;
}
...
...
@@ -312,8 +312,8 @@ public:
void
test_convert_counts_to_frequency_once_per_histogram_sparse
()
{
double
total
=
0
;
for
(
size_t
i
=
0
;
i
<
nHists
;
i
++
)
{
auto
counts
=
m_hist
.
counts
();
auto
frequencies
=
m_hist
.
frequencies
();
const
auto
&
counts
=
m_hist
.
counts
();
const
auto
&
frequencies
=
m_hist
.
frequencies
();
for
(
size_t
j
=
0
;
j
<
histSize
;
++
j
)
if
(
counts
[
j
]
>
histSize
-
5
)
total
+=
frequencies
[
j
];
...
...
@@ -321,8 +321,8 @@ public:
}
private
:
const
size_t
nHists
=
5
00
;
const
size_t
histSize
=
5
0000
;
const
size_t
nHists
=
10
00
;
const
size_t
histSize
=
100
0000
;
Histogram
m_hist
;
};
...
...
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