mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 09:07:45 +00:00
AK: Resolve clang-tidy readability-qualified-auto warnings
... In files included by Kernel/Process.cpp and Kernel/Thread.cpp
This commit is contained in:
parent
64edf17eb2
commit
762b92c650
3 changed files with 4 additions and 4 deletions
|
@ -254,7 +254,7 @@ private:
|
|||
NEVER_INLINE void shrink_into_inline_buffer(size_t size, bool may_discard_existing_data)
|
||||
{
|
||||
// m_inline_buffer and m_outline_buffer are part of a union, so save the pointer
|
||||
auto outline_buffer = m_outline_buffer;
|
||||
auto* outline_buffer = m_outline_buffer;
|
||||
auto outline_capacity = m_outline_capacity;
|
||||
if (!may_discard_existing_data)
|
||||
__builtin_memcpy(m_inline_buffer, outline_buffer, size);
|
||||
|
@ -265,7 +265,7 @@ private:
|
|||
NEVER_INLINE ErrorOr<void> try_ensure_capacity_slowpath(size_t new_capacity)
|
||||
{
|
||||
new_capacity = kmalloc_good_size(new_capacity);
|
||||
auto new_buffer = (u8*)kmalloc(new_capacity);
|
||||
auto* new_buffer = (u8*)kmalloc(new_capacity);
|
||||
if (!new_buffer)
|
||||
return Error::from_errno(ENOMEM);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue