This commit is contained in:
raziel1000 2024-07-04 01:57:03 -06:00
parent 1968b2aa81
commit e22ad65e70
1 changed files with 2 additions and 3 deletions

View File

@ -19,9 +19,8 @@ void MntPoints::Mount(const std::filesystem::path& host_folder, const std::strin
} }
void MntPoints::Unmount(const std::filesystem::path& host_folder, const std::string& guest_folder) { void MntPoints::Unmount(const std::filesystem::path& host_folder, const std::string& guest_folder) {
auto it = std::remove_if(m_mnt_pairs.begin(), m_mnt_pairs.end(), [&](const MntPair& pair) { auto it = std::remove_if(m_mnt_pairs.begin(), m_mnt_pairs.end(),
return pair.guest_path == guest_folder; [&](const MntPair& pair) { return pair.guest_path == guest_folder; });
});
m_mnt_pairs.erase(it, m_mnt_pairs.end()); m_mnt_pairs.erase(it, m_mnt_pairs.end());
} }