diff options
| author | garder500 <jeremy27.clara22@gmail.com> | 2025-05-02 00:10:43 +0200 |
|---|---|---|
| committer | garder500 <jeremy27.clara22@gmail.com> | 2025-05-02 00:10:43 +0200 |
| commit | 83298ee3aec687ba1c5f41fb7135e465869d4fe8 (patch) | |
| tree | d4d54cd1f1cb8d6e355fee138cf0d460dd4b1b6f /bot/src/actions/delete.cpp | |
| parent | fe156854748a767aafc773748e1c4ecc9a701484 (diff) | |
Refactor la gestion des traductions : remplacement des maps par des unordered_maps pour améliorer les performances dans la fonction translate.
Diffstat (limited to 'bot/src/actions/delete.cpp')
| -rw-r--r-- | bot/src/actions/delete.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/src/actions/delete.cpp b/bot/src/actions/delete.cpp index dbd9efe..da74bbf 100644 --- a/bot/src/actions/delete.cpp +++ b/bot/src/actions/delete.cpp @@ -1,7 +1,7 @@ #include "../../include/utils.hpp" -const std::map<Lang, std::map<std::string, std::string>> error_messages_map = { +const std::unordered_map<Lang, std::unordered_map<std::string, std::string>> error_messages_map = { {Lang::en, { {"error_no_messages", "No message to delete."}, {"error", "You need to wait a bit before deleting messages."}, |
