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
c6811f5c
Commit
c6811f5c
authored
10 years ago
by
Anders Markvardsen
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'origin/bugfix/9926_coverity_issues_mgigg'
parents
257d218b
8d1c3e48
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Code/Mantid/Framework/Algorithms/src/CreateCalFileByNames.cpp
+6
-5
6 additions, 5 deletions
.../Mantid/Framework/Algorithms/src/CreateCalFileByNames.cpp
Code/Mantid/Framework/Algorithms/src/CreateDummyCalFile.cpp
+6
-5
6 additions, 5 deletions
Code/Mantid/Framework/Algorithms/src/CreateDummyCalFile.cpp
with
12 additions
and
10 deletions
Code/Mantid/Framework/Algorithms/src/CreateCalFileByNames.cpp
+
6
−
5
View file @
c6811f5c
...
...
@@ -211,7 +211,6 @@ namespace Mantid
int
number
,
udet
,
select
,
group
;
double
offset
;
instrcalmap
::
const_iterator
it
;
std
::
string
str
;
while
(
getline
(
infile
,
str
))
{
...
...
@@ -219,10 +218,12 @@ namespace Mantid
continue
;
std
::
istringstream
istr
(
str
);
istr
>>
number
>>
udet
>>
offset
>>
select
>>
group
;
it
=
instrcalib
.
find
(
udet
);
if
(
it
==
instrcalib
.
end
())
// Not found, don't assign a group
group
=
0
;
group
=
((
*
it
).
second
).
second
;
// If found then assign new group
instrcalmap
::
const_iterator
it
=
instrcalib
.
find
(
udet
);
if
(
it
==
instrcalib
.
end
())
// Not found, don't assign a group
group
=
0
;
else
group
=
((
*
it
).
second
).
second
;
// If found then assign new group
// write out
writeCalEntry
(
outfile
,
number
,
udet
,
offset
,
select
,
group
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Code/Mantid/Framework/Algorithms/src/CreateDummyCalFile.cpp
+
6
−
5
View file @
c6811f5c
...
...
@@ -264,7 +264,6 @@ namespace Mantid
int
number
,
udet
,
select
,
group
;
double
offset
;
instrcalmap
::
const_iterator
it
;
std
::
string
str
;
while
(
getline
(
infile
,
str
))
{
...
...
@@ -272,10 +271,12 @@ namespace Mantid
continue
;
std
::
istringstream
istr
(
str
);
istr
>>
number
>>
udet
>>
offset
>>
select
>>
group
;
it
=
instrcalib
.
find
(
udet
);
if
(
it
==
instrcalib
.
end
())
// Not found, don't assign a group
group
=
0
;
group
=
((
*
it
).
second
).
second
;
// If found then assign new group
instrcalmap
::
const_iterator
it
=
instrcalib
.
find
(
udet
);
if
(
it
==
instrcalib
.
end
())
// Not found, don't assign a group
group
=
0
;
else
group
=
((
*
it
).
second
).
second
;
// If found then assign new group
// write to file
writeCalEntry
(
outfile
,
number
,
udet
,
offset
,
select
,
group
);
}
}
...
...
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