From 56cc8557c5f2d75810f07d8ae2e7536273afc5ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Dom=C3=ADnguez?= Date: Mon, 26 Aug 2024 22:10:21 +0200 Subject: [PATCH] Replace boost::replace_all with std::replace --- gtk2_ardour/patch_change_dialog.cc | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/gtk2_ardour/patch_change_dialog.cc b/gtk2_ardour/patch_change_dialog.cc index 52e7b2beff..035245b272 100644 --- a/gtk2_ardour/patch_change_dialog.cc +++ b/gtk2_ardour/patch_change_dialog.cc @@ -22,8 +22,6 @@ #include #include -#include - #include "gtkmm2ext/utils.h" #include "midi++/midnam_patch.h" @@ -204,7 +202,7 @@ PatchChangeDialog::fill_bank_combo () for (MIDI::Name::ChannelNameSet::PatchBanks::const_iterator i = cns->patch_banks().begin(); i != cns->patch_banks().end(); ++i) { string n = (*i)->name (); - boost::replace_all (n, "_", " "); + std::replace (n.begin (), n.end (), '_', ' '); _bank_combo.append (n); } } @@ -224,7 +222,7 @@ PatchChangeDialog::set_active_bank_combo () for (MIDI::Name::ChannelNameSet::PatchBanks::const_iterator i = cns->patch_banks().begin(); i != cns->patch_banks().end(); ++i) { string n = (*i)->name (); - boost::replace_all (n, "_", " "); + std::replace (n.begin (), n.end (), '_', ' '); if ((*i)->number() == get_14bit_bank()) { _current_patch_bank = *i; @@ -260,7 +258,7 @@ PatchChangeDialog::bank_combo_changed () for (MIDI::Name::ChannelNameSet::PatchBanks::const_iterator i = cns->patch_banks().begin(); i != cns->patch_banks().end(); ++i) { string n = (*i)->name (); - boost::replace_all (n, "_", " "); + std::replace (n.begin (), n.end (), '_', ' '); if (n == _bank_combo.get_active_text()) { _current_patch_bank = *i; } @@ -296,7 +294,7 @@ PatchChangeDialog::fill_patch_combo () const MIDI::Name::PatchNameList& patches = _current_patch_bank->patch_name_list (); for (MIDI::Name::PatchNameList::const_iterator j = patches.begin(); j != patches.end(); ++j) { string n = (*j)->name (); - boost::replace_all (n, "_", " "); + std::replace (n.begin (), n.end (), '_', ' '); _patch_combo.append (n); } } @@ -319,7 +317,7 @@ PatchChangeDialog::set_active_patch_combo () const MIDI::Name::PatchNameList& patches = _current_patch_bank->patch_name_list (); for (MIDI::Name::PatchNameList::const_iterator j = patches.begin(); j != patches.end(); ++j) { string n = (*j)->name (); - boost::replace_all (n, "_", " "); + std::replace (n.begin (), n.end (), '_', ' '); MIDI::Name::PatchPrimaryKey const & key = (*j)->patch_primary_key (); if (key.program() == _program.get_value() - 1) { @@ -347,7 +345,7 @@ PatchChangeDialog::patch_combo_changed () for (MIDI::Name::PatchNameList::const_iterator j = patches.begin(); j != patches.end(); ++j) { string n = (*j)->name (); - boost::replace_all (n, "_", " "); + std::replace (n.begin (), n.end (), '_', ' '); if (n == _patch_combo.get_active_text ()) { _ignore_signals = true;