mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +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
Notes:
sideshowbarker
2024-07-18 01:07:56 +09:00
Author: https://github.com/ADKaster Commit: https://github.com/SerenityOS/serenity/commit/762b92c6502 Pull-request: https://github.com/SerenityOS/serenity/pull/10737 Reviewed-by: https://github.com/BenWiederhake Reviewed-by: https://github.com/PeterBindels-TomTom Reviewed-by: https://github.com/awesomekling Reviewed-by: https://github.com/dascandy Reviewed-by: https://github.com/trflynn89
3 changed files with 4 additions and 4 deletions
|
@ -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()));
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue