Address clang-tidy-18 warnings on Linux

This commit is contained in:
Chris Thrasher 2024-04-25 22:33:53 +00:00
parent c0ca39ed21
commit 5da286487a
2 changed files with 3 additions and 3 deletions

View File

@ -108,10 +108,10 @@ std::shared_ptr<_XIM> openXim()
xim = sharedXIM;
// Restore the previous locale
if (prevLoc.length() != 0)
if (!prevLoc.empty())
std::setlocale(LC_ALL, prevLoc.c_str());
if (prevXLoc.length() != 0)
if (!prevXLoc.empty())
XSetLocaleModifiers(prevXLoc.c_str());
}

View File

@ -48,7 +48,7 @@ struct XDeleter
{
void operator()(T* data) const
{
XFree(data);
XFree(data); // NOLINT(bugprone-multi-level-implicit-pointer-conversion)
}
};