mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 02:47:35 +00:00
AK: Make Vector use size_t for its size and capacity
This commit is contained in:
parent
9c6f7d3e7d
commit
ceec1a7d38
94 changed files with 323 additions and 317 deletions
|
@ -84,13 +84,13 @@ public:
|
|||
const IRCWindow& window_at(int index) const { return *m_windows.at(index); }
|
||||
IRCWindow& window_at(int index) { return *m_windows.at(index); }
|
||||
|
||||
int window_index(const IRCWindow& window) const
|
||||
size_t window_index(const IRCWindow& window) const
|
||||
{
|
||||
for (int i = 0; i < m_windows.size(); ++i) {
|
||||
for (size_t i = 0; i < m_windows.size(); ++i) {
|
||||
if (m_windows[i] == &window)
|
||||
return i;
|
||||
}
|
||||
return -1;
|
||||
ASSERT_NOT_REACHED();
|
||||
}
|
||||
|
||||
void did_part_from_channel(Badge<IRCChannel>, IRCChannel&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue