mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-20 06:36:16 +00:00
AK: Make Vector use size_t for its size and capacity
This commit is contained in:
@@ -146,7 +146,7 @@ public:
|
||||
return {};
|
||||
}
|
||||
|
||||
for (int row = 0; row < node.parent->parent->children.size(); ++row) {
|
||||
for (size_t row = 0; row < node.parent->parent->children.size(); ++row) {
|
||||
if (node.parent->parent->children[row].ptr() == node.parent)
|
||||
return create_index(row, 0, node.parent);
|
||||
}
|
||||
@@ -260,7 +260,7 @@ void Project::rebuild_tree()
|
||||
ProjectTreeNode* current = root.ptr();
|
||||
StringBuilder partial_path;
|
||||
|
||||
for (int i = 0; i < path.parts().size(); ++i) {
|
||||
for (size_t i = 0; i < path.parts().size(); ++i) {
|
||||
auto& part = path.parts().at(i);
|
||||
if (part == ".")
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user