Browse Source

Fix box and ref APIs' conflict with name `Vector`

pull/8/head
Anton Tarasenko 2 years ago
parent
commit
afe58a9d15
  1. 2
      sources/Types/Boxes/BoxAPI.uc
  2. 2
      sources/Types/Refs/RefAPI.uc

2
sources/Types/Boxes/BoxAPI.uc

@ -142,7 +142,7 @@ public final function IntArrayBox IntArray(array<int> arrayValue)
* @param value Value to store in the box. * @param value Value to store in the box.
* @return `VectorBox`, containing `value`. * @return `VectorBox`, containing `value`.
*/ */
public final function VectorBox Vector(optional Vector value) public final function VectorBox Vec(optional Vector value)
{ {
local VectorBox box; local VectorBox box;
box = VectorBox(_.memory.Allocate(class'VectorBox')); box = VectorBox(_.memory.Allocate(class'VectorBox'));

2
sources/Types/Refs/RefAPI.uc

@ -175,7 +175,7 @@ public final function IntArrayRef IntArray(array<int> arrayValue)
* @param value Initial value to store in reference. * @param value Initial value to store in reference.
* @return `VectorRef`, containing `value`. * @return `VectorRef`, containing `value`.
*/ */
public final function VectorRef Vector(optional Vector value) public final function VectorRef Vec(optional Vector value)
{ {
local VectorRef ref; local VectorRef ref;
ref = VectorRef(_.memory.Allocate(class'VectorRef')); ref = VectorRef(_.memory.Allocate(class'VectorRef'));

Loading…
Cancel
Save