Skip to content

Commit

Permalink
Replace map by unordered map (#403)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy010203 authored Jan 2, 2024
1 parent cdec1ae commit 0aa972b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/config/ConsoleVariable.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <nlohmann/json.hpp>
#include <stdint.h>
#include <memory>
#include <map>
#include <unordered_map>
#include <string>

namespace LUS {
Expand Down Expand Up @@ -56,6 +56,6 @@ class ConsoleVariable {
void LoadLegacy();

private:
std::map<std::string, std::shared_ptr<CVar>, std::less<>> mVariables;
std::unordered_map<std::string, std::shared_ptr<CVar>> mVariables;
};
} // namespace LUS

0 comments on commit 0aa972b

Please sign in to comment.