mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-26 23:10:38 +00:00
Use remove_if correctly.
This commit is contained in:
parent
ae6e0d182e
commit
f54b5e03be
@ -1516,10 +1516,12 @@ void Config::RemoveRecent(const std::string &file) {
|
||||
std::lock_guard<std::mutex> guard(private_->recentIsosLock);
|
||||
|
||||
const auto &filename = File::ResolvePath(file);
|
||||
std::remove_if(recentIsos.begin(), recentIsos.end(), [filename](const auto &str) {
|
||||
auto iter = std::remove_if(recentIsos.begin(), recentIsos.end(), [filename](const auto &str) {
|
||||
const auto &recent = File::ResolvePath(str);
|
||||
return filename == recent;
|
||||
});
|
||||
// remove_if is weird.
|
||||
recentIsos.erase(iter, recentIsos.end());
|
||||
}
|
||||
|
||||
void Config::CleanRecent() {
|
||||
|
Loading…
Reference in New Issue
Block a user