summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Logging/LogManager.cpp
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2025-03-15 16:01:33 +0100
committerGitHub <noreply@github.com>2025-03-15 16:01:33 +0100
commite637a05707b1b146a541da6525a431d42668f5fa (patch)
tree8d5c9a0d4701f1c9940784133671ad58b88d55e1 /Source/Core/Common/Logging/LogManager.cpp
parent1f087473aab780692784028f38c8665f9518ba6f (diff)
parentea7928b3cda5749ba1dcc8e534b1474a28efb28a (diff)
Merge pull request #12866 from JosJuice/android-log-types-sorting
Android: Replace log type names map with array
Diffstat (limited to 'Source/Core/Common/Logging/LogManager.cpp')
-rw-r--r--Source/Core/Common/Logging/LogManager.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/Core/Common/Logging/LogManager.cpp b/Source/Core/Common/Logging/LogManager.cpp
index 749117bc74..283bd436e0 100644
--- a/Source/Core/Common/Logging/LogManager.cpp
+++ b/Source/Core/Common/Logging/LogManager.cpp
@@ -252,12 +252,13 @@ bool LogManager::IsEnabled(LogType type, LogLevel level) const
return m_log[type].m_enable && GetLogLevel() >= level;
}
-std::map<std::string, std::string> LogManager::GetLogTypes()
+std::vector<LogManager::LogContainer> LogManager::GetLogTypes()
{
- std::map<std::string, std::string> log_types;
+ std::vector<LogContainer> log_types;
+ log_types.reserve(m_log.size());
for (const auto& container : m_log)
- log_types.emplace(container.m_short_name, container.m_full_name);
+ log_types.emplace_back(container);
return log_types;
}