mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
GUI: Use new boost::optional API
get_value_or() has been deprecated since boost 1.56
This commit is contained in:
parent
d4ecfc7d85
commit
6ee21fb77e
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue