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
0d1c7697
Commit
0d1c7697
authored
5 years ago
by
Samuel Jones
Browse files
Options
Downloads
Patches
Plain Diff
Re #18826 Fix GCC Compiler warning "maybe-uninitialised"
parent
573a77bf
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
qt/scientific_interfaces/ISISReflectometry/GUI/Common/Decoder.cpp
+4
-4
4 additions, 4 deletions
...tific_interfaces/ISISReflectometry/GUI/Common/Decoder.cpp
with
4 additions
and
4 deletions
qt/scientific_interfaces/ISISReflectometry/GUI/Common/Decoder.cpp
+
4
−
4
View file @
0d1c7697
...
...
@@ -282,7 +282,7 @@ Decoder::decodeRow(const QMap<QString, QVariant> &map) {
for
(
const
auto
&
runNumber
:
map
[
QString
(
"runNumbers"
)].
toList
())
{
number
.
emplace_back
(
runNumber
.
toString
().
toStdString
());
}
boost
::
optional
<
double
>
scaleFactor
=
boost
::
none
;
boost
::
optional
<
double
>
scaleFactor
{
boost
::
none
}
;
if
(
map
[
QString
(
"scaleFactorPresent"
)].
toBool
())
{
scaleFactor
=
map
[
QString
(
"scaleFactor"
)].
toDouble
();
}
...
...
@@ -297,9 +297,9 @@ Decoder::decodeRow(const QMap<QString, QVariant> &map) {
}
RangeInQ
Decoder
::
decodeRangeInQ
(
const
QMap
<
QString
,
QVariant
>
&
map
)
{
boost
::
optional
<
double
>
min
=
boost
::
none
;
boost
::
optional
<
double
>
step
=
boost
::
none
;
boost
::
optional
<
double
>
max
=
boost
::
none
;
boost
::
optional
<
double
>
min
{
boost
::
none
}
;
boost
::
optional
<
double
>
step
{
boost
::
none
}
;
boost
::
optional
<
double
>
max
{
boost
::
none
}
;
if
(
map
[
QString
(
"minPresent"
)].
toBool
())
{
min
=
map
[
QString
(
"min"
)].
toDouble
();
}
...
...
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