diff options
author | Andrey Lihatskiy <alihatskiy@productengine.com> | 2024-07-02 12:02:26 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-02 12:02:26 +0300 |
commit | 5e1f83f7e657a455cdd57716ac6addf3f91b4e0c (patch) | |
tree | 77c11941a1cdafd7b5758da028fec4fbd707feec /indra/llwindow/llkeyboard.cpp | |
parent | e32f6426d5b0765272f7c08bbbb6780a2f2e1e0b (diff) | |
parent | fad6a3753757778d4b50d46f44aabd0d3fa3e13b (diff) |
Merge pull request #1903 from RyeMutt/reduce-llui-stringtemp
Reduce string temporaries from frequently called llui find and get functions
Diffstat (limited to 'indra/llwindow/llkeyboard.cpp')
-rw-r--r-- | indra/llwindow/llkeyboard.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/llwindow/llkeyboard.cpp b/indra/llwindow/llkeyboard.cpp index 4f29fb0b0a..33eebdadd1 100644 --- a/indra/llwindow/llkeyboard.cpp +++ b/indra/llwindow/llkeyboard.cpp @@ -359,7 +359,7 @@ std::string LLKeyboard::stringFromKey(KEY key, bool translate) LLKeyStringTranslatorFunc *trans = gKeyboard->mStringTranslator; if (trans != NULL) { - res = trans(res.c_str()); + res = trans(res); } } @@ -399,7 +399,7 @@ std::string LLKeyboard::stringFromMouse(EMouseClickType click, bool translate) LLKeyStringTranslatorFunc* trans = gKeyboard->mStringTranslator; if (trans != NULL) { - res = trans(res.c_str()); + res = trans(res); } } return res; |