settings.endGroup();
}
- } catch (out_of_range) {
+ } catch (out_of_range&) {
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());
- } catch (out_of_range) {
+ } catch (out_of_range&) {
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;
- } catch (boost::archive::archive_exception) {
+ } catch (boost::archive::archive_exception&) {
qDebug() << "Could not restore the view ruler shift";
}
}
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";
}
}