mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-22 02:09:24 +00:00
AK+Userland: Fix some compiler warnings and make variables const-ref
This fixes a few compiler warnings and makes some variables const-ref in preparation for the next commit which changes how ByteBuffer works.
This commit is contained in:
parent
fbdc3b0ee2
commit
f0fa51773a
Notes:
sideshowbarker
2024-07-18 18:02:02 +09:00
Author: https://github.com/gunnarbeutner
Commit: f0fa51773a
Pull-request: https://github.com/SerenityOS/serenity/pull/7151
Reviewed-by: https://github.com/alimpfard
7 changed files with 12 additions and 7 deletions
|
@ -22,7 +22,7 @@ InspectableProcess::InspectableProcess(pid_t pid, NonnullRefPtr<Core::LocalSocke
|
|||
{
|
||||
m_socket->set_blocking(true);
|
||||
m_socket->on_ready_to_read = [this] {
|
||||
auto buffer = m_socket->read(1);
|
||||
[[maybe_unused]] auto buffer = m_socket->read(1);
|
||||
if (m_socket->eof()) {
|
||||
g_processes.remove(m_pid);
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue