From afe58a9d15692cdff243f3dc3de23f2a11d6e4a4 Mon Sep 17 00:00:00 2001 From: Anton Tarasenko Date: Tue, 5 Jul 2022 21:01:33 +0700 Subject: [PATCH] Fix box and ref APIs' conflict with name `Vector` --- sources/Types/Boxes/BoxAPI.uc | 2 +- sources/Types/Refs/RefAPI.uc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/Types/Boxes/BoxAPI.uc b/sources/Types/Boxes/BoxAPI.uc index e48ca57..7dfc29a 100644 --- a/sources/Types/Boxes/BoxAPI.uc +++ b/sources/Types/Boxes/BoxAPI.uc @@ -142,7 +142,7 @@ public final function IntArrayBox IntArray(array arrayValue) * @param value Value to store in the box. * @return `VectorBox`, containing `value`. */ -public final function VectorBox Vector(optional Vector value) +public final function VectorBox Vec(optional Vector value) { local VectorBox box; box = VectorBox(_.memory.Allocate(class'VectorBox')); diff --git a/sources/Types/Refs/RefAPI.uc b/sources/Types/Refs/RefAPI.uc index 82ee688..06c8426 100644 --- a/sources/Types/Refs/RefAPI.uc +++ b/sources/Types/Refs/RefAPI.uc @@ -175,7 +175,7 @@ public final function IntArrayRef IntArray(array arrayValue) * @param value Initial value to store in reference. * @return `VectorRef`, containing `value`. */ -public final function VectorRef Vector(optional Vector value) +public final function VectorRef Vec(optional Vector value) { local VectorRef ref; ref = VectorRef(_.memory.Allocate(class'VectorRef'));