1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-26 01:55:08 +00:00

AK: Make Vector use size_t for its size and capacity

This commit is contained in:
Andreas Kling 2020-02-25 14:49:47 +01:00
parent 9c6f7d3e7d
commit ceec1a7d38
94 changed files with 323 additions and 317 deletions

View file

@ -241,7 +241,7 @@ void IRCClient::send_whois(const String& nick)
void IRCClient::handle(const Message& msg)
{
#ifdef IRC_DEBUG
printf("IRCClient::execute: prefix='%s', command='%s', arguments=%d\n",
printf("IRCClient::execute: prefix='%s', command='%s', arguments=%zu\n",
msg.prefix.characters(),
msg.command.characters(),
msg.arguments.size());
@ -463,7 +463,7 @@ IRCChannel& IRCClient::ensure_channel(const String& name)
void IRCClient::handle_ping(const Message& msg)
{
if (msg.arguments.size() < 0)
if (msg.arguments.size() < 1)
return;
m_log->add_message(0, "", "Ping? Pong!");
send_pong(msg.arguments[0]);
@ -646,7 +646,7 @@ void IRCClient::unregister_subwindow(IRCWindow& subwindow)
if (subwindow.type() == IRCWindow::Server) {
m_server_subwindow = &subwindow;
}
for (int i = 0; i < m_windows.size(); ++i) {
for (size_t i = 0; i < m_windows.size(); ++i) {
if (m_windows.at(i) == &subwindow) {
m_windows.remove(i);
break;