1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 09:34:59 +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:
Andrew Kaster 2021-11-06 14:12:16 -06:00 committed by Andreas Kling
parent 10d0cac73c
commit 22feb9d47b
12 changed files with 26 additions and 25 deletions

View file

@ -181,7 +181,7 @@ public:
swap(a.m_collection_data, b.m_collection_data);
}
[[nodiscard]] bool is_empty() const { return !m_size; }
[[nodiscard]] bool is_empty() const { return m_size == 0; }
[[nodiscard]] size_t size() const { return m_size; }
[[nodiscard]] size_t capacity() const { return m_capacity; }