From 1ee044c5fc5ad7e5cd302537ca3a46631bc0cf70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Dom=C3=ADnguez?= Date: Sun, 25 Aug 2024 17:28:47 +0200 Subject: [PATCH] Replace boost::erase_first with std equivalent --- libs/ardour/session_bundles.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libs/ardour/session_bundles.cc b/libs/ardour/session_bundles.cc index 558c63716c..f1ca9f8f39 100644 --- a/libs/ardour/session_bundles.cc +++ b/libs/ardour/session_bundles.cc @@ -29,8 +29,6 @@ #include -#include - #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 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 c (new Bundle (n, true)); c->add_channel ("", DataType::MIDI);