@@ -117,7 +117,7 @@ void MainWindow::flashGotoPressed() {
117117 ui->flashEdit ->setOffset (hex2int (resolved));
118118
119119 auto &hist = m_memGotoHistory;
120- hist. erase ( std::remove_if (hist. begin (), hist. end (), [&](const QString &s){ return s.compare (typed, Qt::CaseInsensitive) == 0 ; }), hist. end () );
120+ std::erase_if (hist, [&](const QString &s){ return s.compare (typed, Qt::CaseInsensitive) == 0 ; });
121121 hist.insert (hist.begin (), typed);
122122 if (hist.size () > 50 ) { hist.resize (50 ); }
123123 } else {
@@ -138,7 +138,7 @@ void MainWindow::ramGotoPressed() {
138138 ui->ramEdit ->setOffset (hex2int (resolved) - 0xD00000 );
139139
140140 auto &hist = m_memGotoHistory;
141- hist. erase ( std::remove_if (hist. begin (), hist. end (), [&](const QString &s){ return s.compare (typed, Qt::CaseInsensitive) == 0 ; }), hist. end () );
141+ std::erase_if (hist, [&](const QString &s){ return s.compare (typed, Qt::CaseInsensitive) == 0 ; });
142142 hist.insert (hist.begin (), typed);
143143 if (hist.size () > 50 ) { hist.resize (50 ); }
144144 } else {
@@ -225,7 +225,7 @@ void MainWindow::memGotoEdit(HexWidget *edit) {
225225 memGoto (edit, static_cast <uint32_t >(hex2int (resolved)));
226226 // MRU update
227227 auto &hist = m_memGotoHistory;
228- hist. erase ( std::remove_if (hist. begin (), hist. end (), [&](const QString &s){ return s.compare (typed, Qt::CaseInsensitive) == 0 ; }), hist. end () );
228+ std::erase_if (hist, [&](const QString &s){ return s.compare (typed, Qt::CaseInsensitive) == 0 ; });
229229 hist.insert (hist.begin (), typed);
230230 if (hist.size () > 50 ) { hist.resize (50 ); }
231231 } else {
0 commit comments