drop usage of std::deque, part 1

use FixedQueue instead
This commit is contained in:
tildearrow 2023-09-13 02:40:12 -05:00
parent f9c67460ce
commit 8b565ed284
6 changed files with 84 additions and 19 deletions

View file

@ -2207,7 +2207,7 @@ void FurnaceGUI::pushRecentFile(String path) {
if (path.find(backupPath)==0) return;
for (int i=0; i<(int)recentFile.size(); i++) {
if (recentFile[i]==path) {
recentFile.erase(recentFile.begin()+i);
recentFile.erase(i);
i--;
}
}
@ -3948,7 +3948,7 @@ bool FurnaceGUI::loop() {
nextFile=item;
showWarning("Unsaved changes! Save changes before opening file?",GUI_WARN_OPEN_DROP);
} else {
recentFile.erase(recentFile.begin()+i);
recentFile.erase(i);
i--;
if (load(item)>0) {
showError(fmt::sprintf("Error while loading file! (%s)",lastError));