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