Replace boost::erase_first with std equivalent
This commit is contained in:
parent
21e70d28cc
commit
1ee044c5fc
@ -29,8 +29,6 @@
|
||||
|
||||
#include <cstdio>
|
||||
|
||||
#include <boost/algorithm/string/erase.hpp>
|
||||
|
||||
#include "pbd/i18n.h"
|
||||
|
||||
#include "ardour/async_midi_port.h"
|
||||
@ -238,7 +236,7 @@ Session::setup_bundles ()
|
||||
if (!pn.empty()) {
|
||||
n = pn;
|
||||
} else {
|
||||
boost::erase_first (n, X_("alsa_pcm:"));
|
||||
n.erase (n.find_first_of (X_("alsa_pcm:")), 1);
|
||||
}
|
||||
std::shared_ptr<Bundle> c (new Bundle (n, false));
|
||||
c->add_channel ("", DataType::MIDI);
|
||||
@ -254,7 +252,7 @@ Session::setup_bundles ()
|
||||
if (!pn.empty()) {
|
||||
n = pn;
|
||||
} else {
|
||||
boost::erase_first (n, X_("alsa_pcm:"));
|
||||
n.erase (n.find_first_of (X_("alsa_pcm:")), 1);
|
||||
}
|
||||
std::shared_ptr<Bundle> c (new Bundle (n, true));
|
||||
c->add_channel ("", DataType::MIDI);
|
||||
|
Loading…
Reference in New Issue
Block a user