mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:47:47 +00:00
Kernel: Resolve clang-tidy readability-implicit-bool-conversion warnings
... In files included from Kernel/Process.cpp and Kernel/Thread.cpp
This commit is contained in:
parent
6f580f2047
commit
a92132e44a
17 changed files with 85 additions and 84 deletions
|
@ -155,7 +155,7 @@ public:
|
|||
|
||||
inline static bool has_current()
|
||||
{
|
||||
return Processor::current_thread();
|
||||
return Processor::current_thread() != nullptr;
|
||||
}
|
||||
|
||||
template<typename EntryFunction>
|
||||
|
@ -459,7 +459,7 @@ public:
|
|||
Mutex& ptrace_lock() { return m_ptrace_lock; }
|
||||
|
||||
bool has_promises() const { return m_protected_values.has_promises; }
|
||||
bool has_promised(Pledge pledge) const { return m_protected_values.promises & (1u << (u32)pledge); }
|
||||
bool has_promised(Pledge pledge) const { return (m_protected_values.promises & (1U << (u32)pledge)) != 0; }
|
||||
|
||||
VeilState veil_state() const
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue