crlib: switch to new hashmap
This commit is contained in:
parent
c856b55302
commit
2765eed7ac
8 changed files with 67 additions and 75 deletions
|
|
@ -793,7 +793,7 @@ const char *BotConfig::translate (StringRef input) {
|
|||
}
|
||||
auto hash = hashLangString (input.chars ());
|
||||
|
||||
if (m_language.has (hash)) {
|
||||
if (m_language.exists (hash)) {
|
||||
return m_language[hash].chars ();
|
||||
}
|
||||
return input.chars (); // nothing found
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue