diff options
author | Robin Gareus <robin@gareus.org> | 2019-11-21 17:48:56 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2019-11-21 17:48:56 +0100 |
commit | d4ecfc7d8577e278bd4db3564fc418a780c5af79 (patch) | |
tree | b9ae5f3737ba3826f991134ede16f7b2b76977e0 /libs/ardour/io.cc | |
parent | 216492c60c30860d973de132462cb05bab755b34 (diff) |
Use new boost::optional API
get_value_or() has been deprecated since boost 1.56
Diffstat (limited to 'libs/ardour/io.cc')
-rw-r--r-- | libs/ardour/io.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/ardour/io.cc b/libs/ardour/io.cc index f185e073b0..b8e51ffd89 100644 --- a/libs/ardour/io.cc +++ b/libs/ardour/io.cc @@ -231,7 +231,7 @@ IO::remove_port (boost::shared_ptr<Port> port, void* src) after.set (port->type(), after.get (port->type()) - 1); boost::optional<bool> const r = PortCountChanging (after); /* EMIT SIGNAL */ - if (r.get_value_or (false)) { + if (r.value_or (false)) { return -1; } @@ -1398,7 +1398,7 @@ IO::enable_connecting () Glib::Threads::Mutex::Lock lm (AudioEngine::instance()->process_lock()); connecting_legal = true; boost::optional<int> r = ConnectingLegal (); - return r.get_value_or (0); + return r.value_or (0); } void |