mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 22:19:02 +00:00
[Config] Use std::less<> for std::map<...>
Reduces amount of string copies [Utilities] fmt::replace_all: avoid creation of temporary strings
This commit is contained in:
parent
2981867375
commit
cccfb89aa0
14 changed files with 80 additions and 62 deletions
|
|
@ -227,7 +227,7 @@ namespace logs
|
|||
}
|
||||
}
|
||||
|
||||
void set_channel_levels(const std::map<std::string, logs::level>& map)
|
||||
void set_channel_levels(const std::map<std::string, logs::level, std::less<>>& map)
|
||||
{
|
||||
for (auto&& pair : map)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -164,7 +164,7 @@ namespace logs
|
|||
level get_level(const std::string&);
|
||||
|
||||
// Log level control: set specific channels to level::fatal
|
||||
void set_channel_levels(const std::map<std::string, logs::level>& map);
|
||||
void set_channel_levels(const std::map<std::string, logs::level, std::less<>>& map);
|
||||
|
||||
// Get all registered log channels
|
||||
std::vector<std::string> get_channels();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue