internal: fix clang-tidy "errors" (#11862)
This commit is contained in:
parent
43fb4753fc
commit
4d82cc5957
13 changed files with 133 additions and 26 deletions
|
|
@ -155,10 +155,10 @@ void IKeyboard::updateKeymapFD() {
|
|||
|
||||
auto cKeymapStr = xkb_keymap_get_as_string(m_xkbKeymap, XKB_KEYMAP_FORMAT_TEXT_V2);
|
||||
m_xkbKeymapString = cKeymapStr;
|
||||
free(cKeymapStr);
|
||||
free(cKeymapStr); // NOLINT(cppcoreguidelines-no-malloc,-warnings-as-errors)
|
||||
auto cKeymapV1Str = xkb_keymap_get_as_string(m_xkbKeymap, XKB_KEYMAP_FORMAT_TEXT_V1);
|
||||
m_xkbKeymapV1String = cKeymapV1Str;
|
||||
free(cKeymapV1Str);
|
||||
free(cKeymapV1Str); // NOLINT(cppcoreguidelines-no-malloc,-warnings-as-errors)
|
||||
|
||||
CFileDescriptor rw, ro, rwV1, roV1;
|
||||
if (!allocateSHMFilePair(m_xkbKeymapString.length() + 1, rw, ro))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue