Rename remove() to remove_at() when removing by index
This commit is contained in:
parent
5efe80f308
commit
e078f970db
134 changed files with 323 additions and 323 deletions
|
|
@ -293,12 +293,12 @@ void NodePath::simplify() {
|
|||
break;
|
||||
}
|
||||
if (data->path[i].operator String() == ".") {
|
||||
data->path.remove(i);
|
||||
data->path.remove_at(i);
|
||||
i--;
|
||||
} else if (i > 0 && data->path[i].operator String() == ".." && data->path[i - 1].operator String() != "." && data->path[i - 1].operator String() != "..") {
|
||||
//remove both
|
||||
data->path.remove(i - 1);
|
||||
data->path.remove(i - 1);
|
||||
data->path.remove_at(i - 1);
|
||||
data->path.remove_at(i - 1);
|
||||
i -= 2;
|
||||
if (data->path.size() == 0) {
|
||||
data->path.push_back(".");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue