mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 23:37:36 +00:00
AK: Resolve clang-tidy readability-bool-conversion warnings
... In files included by Kernel/Process.cpp and Kernel/Thread.cpp
This commit is contained in:
parent
10d0cac73c
commit
22feb9d47b
12 changed files with 26 additions and 25 deletions
|
@ -15,7 +15,7 @@ class TypedTransfer {
|
|||
public:
|
||||
static void move(T* destination, T* source, size_t count)
|
||||
{
|
||||
if (!count)
|
||||
if (count == 0)
|
||||
return;
|
||||
|
||||
if constexpr (Traits<T>::is_trivial()) {
|
||||
|
@ -29,13 +29,11 @@ public:
|
|||
else
|
||||
new (&destination[count - i - 1]) T(std::move(source[count - i - 1]));
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
static size_t copy(T* destination, const T* source, size_t count)
|
||||
{
|
||||
if (!count)
|
||||
if (count == 0)
|
||||
return 0;
|
||||
|
||||
if constexpr (Traits<T>::is_trivial()) {
|
||||
|
@ -55,7 +53,7 @@ public:
|
|||
|
||||
static bool compare(const T* a, const T* b, size_t count)
|
||||
{
|
||||
if (!count)
|
||||
if (count == 0)
|
||||
return true;
|
||||
|
||||
if constexpr (Traits<T>::is_trivial())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue