1
0
Fork 0

Switch write protected set to unordered_set

This commit is contained in:
krcroft 2020-02-23 22:28:08 -08:00 committed by Patryk Obara
parent b302b535c3
commit 6c0e1a4607
2 changed files with 6 additions and 6 deletions

View file

@ -65,9 +65,9 @@ bool localDrive::FileCreate(DOS_File * * file,char * name,Bit16u /*attributes*/)
}
bool localDrive::IsFirstEncounter(const std::string& filename) {
const std::pair<std::set<std::string>::iterator, bool> \
ret(write_protected_files.insert(filename));
return ret.second;
const auto ret = write_protected_files.insert(filename);
const bool was_inserted = ret.second;
return was_inserted;
}
bool localDrive::FileOpen(DOS_File** file, char * name, Bit32u flags) {