mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 22:31:09 +08:00
Address clang-tidy-18 warnings on Linux
This commit is contained in:
parent
c0ca39ed21
commit
5da286487a
@ -108,10 +108,10 @@ std::shared_ptr<_XIM> openXim()
|
|||||||
xim = sharedXIM;
|
xim = sharedXIM;
|
||||||
|
|
||||||
// Restore the previous locale
|
// Restore the previous locale
|
||||||
if (prevLoc.length() != 0)
|
if (!prevLoc.empty())
|
||||||
std::setlocale(LC_ALL, prevLoc.c_str());
|
std::setlocale(LC_ALL, prevLoc.c_str());
|
||||||
|
|
||||||
if (prevXLoc.length() != 0)
|
if (!prevXLoc.empty())
|
||||||
XSetLocaleModifiers(prevXLoc.c_str());
|
XSetLocaleModifiers(prevXLoc.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -48,7 +48,7 @@ struct XDeleter
|
|||||||
{
|
{
|
||||||
void operator()(T* data) const
|
void operator()(T* data) const
|
||||||
{
|
{
|
||||||
XFree(data);
|
XFree(data); // NOLINT(bugprone-multi-level-implicit-pointer-conversion)
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user