diff options
author | Markus Härer <markus.haerer@gmx.net> | 2024-08-09 02:34:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-09 02:34:36 +0200 |
commit | ec4eb1979b807d7bd83b04589a88121d165be435 (patch) | |
tree | 48c6e7471876dfa3cd109d3a81cc4775f3e61220 | |
parent | 66d8b33362a90870df8c6c5d99640e16b70f9fb5 (diff) | |
parent | 98a397c3794f842555b50ebe4c0b4eca3530500f (diff) |
Merge pull request #25572 from neo1973/backport_25556
[backport] KeyboardTranslator: Fix call to `StringUtils::ToLower`
-rw-r--r-- | xbmc/input/keymaps/keyboard/KeyboardTranslator.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xbmc/input/keymaps/keyboard/KeyboardTranslator.cpp b/xbmc/input/keymaps/keyboard/KeyboardTranslator.cpp index 2767022ba8..637e551ab3 100644 --- a/xbmc/input/keymaps/keyboard/KeyboardTranslator.cpp +++ b/xbmc/input/keymaps/keyboard/KeyboardTranslator.cpp @@ -51,10 +51,10 @@ uint32_t CKeyboardTranslator::TranslateButton(const tinyxml2::XMLElement* pButto button_id = TranslateString(szButton); // Process the ctrl/shift/alt modifiers - const char* strMod; - if (pButton->QueryStringAttribute("mod", &strMod) == tinyxml2::XML_SUCCESS) + const char* cstrMod; + if (pButton->QueryStringAttribute("mod", &cstrMod) == tinyxml2::XML_SUCCESS) { - StringUtils::ToLower(strMod); + const std::string strMod = StringUtils::ToLower(cstrMod); std::vector<std::string> modArray = StringUtils::Split(strMod, ","); for (auto substr : modArray) |