AK: Resolve clang-tidy readability-qualified-auto warnings

... In files included by Kernel/Process.cpp and Kernel/Thread.cpp
This commit is contained in:
Andrew Kaster 2021-10-31 14:56:10 -06:00 committed by Andreas Kling
parent 64edf17eb2
commit 762b92c650
3 changed files with 4 additions and 4 deletions

View file

@ -82,7 +82,7 @@ public:
auto previous_size_bytes = size_in_bytes();
auto previous_size = m_size;
auto previous_data = m_data;
auto* previous_data = m_data;
m_size = size;
m_data = reinterpret_cast<u8*>(kmalloc(size_in_bytes()));

View file

@ -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);

View file

@ -405,7 +405,7 @@ private:
auto old_capacity = m_capacity;
Iterator old_iter = begin();
auto new_buckets = kmalloc(size_in_bytes(new_capacity));
auto* new_buckets = kmalloc(size_in_bytes(new_capacity));
if (!new_buckets)
return Error::from_errno(ENOMEM);