diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-11-24 07:59:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-24 07:59:56 +0100 |
commit | 96e70ac5f4f477eee3866ea788389a87d0dbd086 (patch) | |
tree | 21fb39b40de2674a99018d88e142e6f0196c68b0 /core/math/expression.cpp | |
parent | 5efe80f3085c8c6451363fe4c743bf3d7fc20b6c (diff) | |
parent | e078f970db0e72bcc665d714416e6fc74e8434a6 (diff) |
Merge pull request #50139 from LightningAA/rename-remove-to-remove-at
Rename `remove()` to `remove_at()` when removing by index
Diffstat (limited to 'core/math/expression.cpp')
-rw-r--r-- | core/math/expression.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/math/expression.cpp b/core/math/expression.cpp index 05f2c8dac9..f366fd0499 100644 --- a/core/math/expression.cpp +++ b/core/math/expression.cpp @@ -1087,7 +1087,7 @@ Expression::ENode *Expression::_parse_expression() { op->nodes[1] = nullptr; expression.write[i].is_op = false; expression.write[i].node = op; - expression.remove(i + 1); + expression.remove_at(i + 1); } } else { @@ -1119,8 +1119,8 @@ Expression::ENode *Expression::_parse_expression() { //replace all 3 nodes by this operator and make it an expression expression.write[next_op - 1].node = op; - expression.remove(next_op); - expression.remove(next_op); + expression.remove_at(next_op); + expression.remove_at(next_op); } } |