diff options
author | Robin Gareus <robin@gareus.org> | 2019-11-21 17:49:20 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2019-11-21 17:49:20 +0100 |
commit | 6ee21fb77e12ca11f0fc29af9b34a1b64501e5a1 (patch) | |
tree | 38f42e9ef8717c570b39a6c93e6b4dead4149b65 /gtk2_ardour/ardour_ui.cc | |
parent | d4ecfc7d8577e278bd4db3564fc418a780c5af79 (diff) |
GUI: Use new boost::optional API
get_value_or() has been deprecated since boost 1.56
Diffstat (limited to 'gtk2_ardour/ardour_ui.cc')
-rw-r--r-- | gtk2_ardour/ardour_ui.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc index 8f29f7b8e9..c12396e900 100644 --- a/gtk2_ardour/ardour_ui.cc +++ b/gtk2_ardour/ardour_ui.cc @@ -1329,13 +1329,13 @@ ARDOUR_UI::update_disk_space() if (!opt_samples) { /* Available space is unknown */ format_disk_space_label (-1); - } else if (opt_samples.get_value_or (0) == max_samplecnt) { + } else if (opt_samples.value_or (0) == max_samplecnt) { format_disk_space_label (max_samplecnt); } else { rec_enabled_streams = 0; _session->foreach_route (this, &ARDOUR_UI::count_recenabled_streams, false); - samplecnt_t samples = opt_samples.get_value_or (0); + samplecnt_t samples = opt_samples.value_or (0); if (rec_enabled_streams) { samples /= rec_enabled_streams; |