Merge pull request #66361 from dalexeev/remove-int-plus-string
Unexpose confusing `String + int` and `int + String` operations
This commit is contained in:
commit
d3a6855dfc
@ -240,8 +240,6 @@ void Variant::_register_variant_operators() {
|
||||
register_op<OperatorEvaluatorAdd<double, double, int64_t>>(Variant::OP_ADD, Variant::FLOAT, Variant::INT);
|
||||
register_op<OperatorEvaluatorAdd<double, double, double>>(Variant::OP_ADD, Variant::FLOAT, Variant::FLOAT);
|
||||
register_op<OperatorEvaluatorAdd<String, String, String>>(Variant::OP_ADD, Variant::STRING, Variant::STRING);
|
||||
register_op<OperatorEvaluatorAdd<String, char32_t, String>>(Variant::OP_ADD, Variant::INT, Variant::STRING);
|
||||
register_op<OperatorEvaluatorAdd<String, String, char32_t>>(Variant::OP_ADD, Variant::STRING, Variant::INT);
|
||||
register_op<OperatorEvaluatorAdd<Vector2, Vector2, Vector2>>(Variant::OP_ADD, Variant::VECTOR2, Variant::VECTOR2);
|
||||
register_op<OperatorEvaluatorAdd<Vector2i, Vector2i, Vector2i>>(Variant::OP_ADD, Variant::VECTOR2I, Variant::VECTOR2I);
|
||||
register_op<OperatorEvaluatorAdd<Vector3, Vector3, Vector3>>(Variant::OP_ADD, Variant::VECTOR3, Variant::VECTOR3);
|
||||
|
@ -940,12 +940,6 @@
|
||||
<description>
|
||||
</description>
|
||||
</operator>
|
||||
<operator name="operator +">
|
||||
<return type="String" />
|
||||
<param index="0" name="right" type="int" />
|
||||
<description>
|
||||
</description>
|
||||
</operator>
|
||||
<operator name="operator <">
|
||||
<return type="bool" />
|
||||
<param index="0" name="right" type="String" />
|
||||
|
@ -205,13 +205,6 @@
|
||||
[/codeblock]
|
||||
</description>
|
||||
</operator>
|
||||
<operator name="operator +">
|
||||
<return type="String" />
|
||||
<param index="0" name="right" type="String" />
|
||||
<description>
|
||||
Adds Unicode character with code [int] to the [String].
|
||||
</description>
|
||||
</operator>
|
||||
<operator name="operator +">
|
||||
<return type="float" />
|
||||
<param index="0" name="right" type="float" />
|
||||
|
Loading…
Reference in New Issue
Block a user