Fix the following build errors seen with gcc 8.1.1:
error: catching polymorphic type ‘class std::out_of_range’ by value
error: catching polymorphic type ‘class boost::archive::archive_exception’ by value
Signed-off-by: Brian Starkey <redacted>
- } catch (out_of_range) {
+ } catch (out_of_range&) {
qWarning() << "Could not find input format" << format_name <<
"needed to restore session input file";
}
qWarning() << "Could not find input format" << format_name <<
"needed to restore session input file";
}
} else {
try {
value_at_hover_pos_ = value_at_pixel_pos_.at(hp.x());
} else {
try {
value_at_hover_pos_ = value_at_pixel_pos_.at(hp.x());
- } catch (out_of_range) {
+ } catch (out_of_range&) {
value_at_hover_pos_ = std::numeric_limits<float>::quiet_NaN();
}
}
value_at_hover_pos_ = std::numeric_limits<float>::quiet_NaN();
}
}
boost::archive::text_iarchive ia(ss);
ia >> boost::serialization::make_nvp("ruler_shift", shift);
ruler_shift_ = shift;
boost::archive::text_iarchive ia(ss);
ia >> boost::serialization::make_nvp("ruler_shift", shift);
ruler_shift_ = shift;
- } catch (boost::archive::archive_exception) {
+ } catch (boost::archive::archive_exception&) {
qDebug() << "Could not restore the view ruler shift";
}
}
qDebug() << "Could not restore the view ruler shift";
}
}
ia >> boost::serialization::make_nvp("offset", offset);
// This also updates ruler_offset_
set_offset(offset);
ia >> boost::serialization::make_nvp("offset", offset);
// This also updates ruler_offset_
set_offset(offset);
- } catch (boost::archive::archive_exception) {
+ } catch (boost::archive::archive_exception&) {
qDebug() << "Could not restore the view offset";
}
}
qDebug() << "Could not restore the view offset";
}
}