Skip to content
Snippets Groups Projects
Commit 0d1c7697 authored by Samuel Jones's avatar Samuel Jones
Browse files

Re #18826 Fix GCC Compiler warning "maybe-uninitialised"

parent 573a77bf
No related branches found
No related tags found
No related merge requests found
......@@ -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();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment