Use btree set in console list dirs

This commit is contained in:
Jonathan G Rennison
2023-08-01 19:11:13 +01:00
parent 4202afc0bc
commit cc9daf4128

View File

@@ -63,7 +63,7 @@
#include "object_base.h" #include "object_base.h"
#include <time.h> #include <time.h>
#include <set> #include "3rdparty/cpp-btree/btree_set.h"
#include <sstream> #include <sstream>
@@ -2410,7 +2410,7 @@ DEF_CONSOLE_CMD(ConListDirs)
return true; return true;
} }
std::set<std::string> seen_dirs; btree::btree_set<std::string> seen_dirs;
for (const SubdirNameMap &sdn : subdir_name_map) { for (const SubdirNameMap &sdn : subdir_name_map) {
if (!StrEqualsIgnoreCase(argv[1], sdn.name)) continue; if (!StrEqualsIgnoreCase(argv[1], sdn.name)) continue;
bool found = false; bool found = false;