diff options
author | kobewi <kobewi4e@gmail.com> | 2022-08-08 00:52:20 +0200 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2022-08-24 12:53:36 +0200 |
commit | f7f4873ed08d6b465c8108f7ce0c1cb76f9caf2f (patch) | |
tree | f5644c01ab66109f8f342d784c3a38240aa295ef /modules/gltf/gltf_template_convert.h | |
parent | 0626ce50cfd35d1eb81c6c9627f8540be9636b4b (diff) |
Replace Array return types with TypedArray 3
Diffstat (limited to 'modules/gltf/gltf_template_convert.h')
-rw-r--r-- | modules/gltf/gltf_template_convert.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/gltf/gltf_template_convert.h b/modules/gltf/gltf_template_convert.h index c915d3deb0..8a4b595c9f 100644 --- a/modules/gltf/gltf_template_convert.h +++ b/modules/gltf/gltf_template_convert.h @@ -46,8 +46,8 @@ static Array to_array(const Vector<T> &p_inp) { } template <class T> -static Array to_array(const HashSet<T> &p_inp) { - Array ret; +static TypedArray<T> to_array(const HashSet<T> &p_inp) { + TypedArray<T> ret; typename HashSet<T>::Iterator elem = p_inp.begin(); while (elem) { ret.push_back(*elem); @@ -65,7 +65,7 @@ static void set_from_array(Vector<T> &r_out, const Array &p_inp) { } template <class T> -static void set_from_array(HashSet<T> &r_out, const Array &p_inp) { +static void set_from_array(HashSet<T> &r_out, const TypedArray<T> &p_inp) { r_out.clear(); for (int i = 0; i < p_inp.size(); i++) { r_out.insert(p_inp[i]); |