13
0

Replace boost::erase_first with std equivalent

This commit is contained in:
Alejandro Domínguez 2024-08-25 17:28:47 +02:00 committed by Robin Gareus
parent 21e70d28cc
commit 1ee044c5fc
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -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);