mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:17:35 +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
|
@ -82,7 +82,7 @@ public:
|
||||||
|
|
||||||
auto previous_size_bytes = size_in_bytes();
|
auto previous_size_bytes = size_in_bytes();
|
||||||
auto previous_size = m_size;
|
auto previous_size = m_size;
|
||||||
auto previous_data = m_data;
|
auto* previous_data = m_data;
|
||||||
|
|
||||||
m_size = size;
|
m_size = size;
|
||||||
m_data = reinterpret_cast<u8*>(kmalloc(size_in_bytes()));
|
m_data = reinterpret_cast<u8*>(kmalloc(size_in_bytes()));
|
||||||
|
|
|
@ -254,7 +254,7 @@ private:
|
||||||
NEVER_INLINE void shrink_into_inline_buffer(size_t size, bool may_discard_existing_data)
|
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
|
// 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;
|
auto outline_capacity = m_outline_capacity;
|
||||||
if (!may_discard_existing_data)
|
if (!may_discard_existing_data)
|
||||||
__builtin_memcpy(m_inline_buffer, outline_buffer, size);
|
__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)
|
NEVER_INLINE ErrorOr<void> try_ensure_capacity_slowpath(size_t new_capacity)
|
||||||
{
|
{
|
||||||
new_capacity = kmalloc_good_size(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)
|
if (!new_buffer)
|
||||||
return Error::from_errno(ENOMEM);
|
return Error::from_errno(ENOMEM);
|
||||||
|
|
||||||
|
|
|
@ -405,7 +405,7 @@ private:
|
||||||
auto old_capacity = m_capacity;
|
auto old_capacity = m_capacity;
|
||||||
Iterator old_iter = begin();
|
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)
|
if (!new_buckets)
|
||||||
return Error::from_errno(ENOMEM);
|
return Error::from_errno(ENOMEM);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue