mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-11 20:16:02 +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
|
@ -466,7 +466,7 @@ static bool fill_getserv_buffers(const char* line, ssize_t read)
|
|||
}
|
||||
auto alias = split_line[i].to_byte_buffer();
|
||||
alias.append("\0", sizeof(char));
|
||||
__getserv_alias_list_buffer.append(alias);
|
||||
__getserv_alias_list_buffer.append(move(alias));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -636,7 +636,7 @@ static bool fill_getproto_buffers(const char* line, ssize_t read)
|
|||
break;
|
||||
auto alias = split_line[i].to_byte_buffer();
|
||||
alias.append("\0", sizeof(char));
|
||||
__getproto_alias_list_buffer.append(alias);
|
||||
__getproto_alias_list_buffer.append(move(alias));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue