Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
mantidproject
mantid
Commits
4a0fbc00
Commit
4a0fbc00
authored
May 18, 2017
by
Antti Soininen
Browse files
Use pass-by-reference instead of copying.
Fixes coverity issue CID 1371482 Re #18948
parent
4f1feba6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Framework/DataHandling/inc/MantidDataHandling/LoadILLTOF2.h
View file @
4a0fbc00
...
...
@@ -74,7 +74,7 @@ private:
const
std
::
vector
<
std
::
vector
<
int
>>
&
);
void
loadSpectra
(
size_t
&
spec
,
const
size_t
numberOfTubes
,
const
std
::
vector
<
Mantid
::
detid_t
>
&
detectorIDs
,
NeXus
::
NXInt
data
,
Mantid
::
API
::
Progress
progress
);
const
NeXus
::
NXInt
&
data
,
Mantid
::
API
::
Progress
&
progress
);
void
runLoadInstrument
();
...
...
Framework/DataHandling/src/LoadILLTOF2.cpp
View file @
4a0fbc00
...
...
@@ -404,7 +404,7 @@ void LoadILLTOF2::loadDataIntoTheWorkSpace(
*/
void
LoadILLTOF2
::
loadSpectra
(
size_t
&
spec
,
const
size_t
numberOfTubes
,
const
std
::
vector
<
detid_t
>
&
detectorIDs
,
NXInt
data
,
Progress
progress
)
{
const
NXInt
&
data
,
Progress
&
progress
)
{
for
(
size_t
i
=
0
;
i
<
numberOfTubes
;
++
i
)
{
for
(
size_t
j
=
0
;
j
<
m_numberOfPixelsPerTube
;
++
j
)
{
int
*
data_p
=
&
data
(
static_cast
<
int
>
(
i
),
static_cast
<
int
>
(
j
),
0
);
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment