diff options
author | Campbell Barton <campbell@blender.org> | 2022-01-07 03:38:08 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-01-07 06:16:26 +0300 |
commit | 3d3bc748849834ef74563deb603ab43859cffeeb (patch) | |
tree | de74ce4722b2cb032c22dbc090a15dd2e172c29b /source/blender/functions/FN_generic_virtual_vector_array.hh | |
parent | bb69c19f08ac681d4386325e4318ebfbef2e9531 (diff) |
Cleanup: remove redundant const qualifiers for POD types
MSVC used to warn about const mismatch for arguments passed by value.
Remove these as newer versions of MSVC no longer show this warning.
Diffstat (limited to 'source/blender/functions/FN_generic_virtual_vector_array.hh')
-rw-r--r-- | source/blender/functions/FN_generic_virtual_vector_array.hh | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/source/blender/functions/FN_generic_virtual_vector_array.hh b/source/blender/functions/FN_generic_virtual_vector_array.hh index b80e21eaef1..b89ca22fe7e 100644 --- a/source/blender/functions/FN_generic_virtual_vector_array.hh +++ b/source/blender/functions/FN_generic_virtual_vector_array.hh @@ -88,10 +88,10 @@ class GVVectorArray { } protected: - virtual int64_t get_vector_size_impl(const int64_t index) const = 0; + virtual int64_t get_vector_size_impl(int64_t index) const = 0; - virtual void get_vector_element_impl(const int64_t index, - const int64_t index_in_vector, + virtual void get_vector_element_impl(int64_t index, + int64_t index_in_vector, void *r_value) const = 0; virtual bool is_single_vector_impl() const @@ -114,8 +114,8 @@ class GVArray_For_GVVectorArrayIndex : public GVArrayImpl { } protected: - void get(const int64_t index_in_vector, void *r_value) const override; - void get_to_uninitialized(const int64_t index_in_vector, void *r_value) const override; + void get(int64_t index_in_vector, void *r_value) const override; + void get_to_uninitialized(int64_t index_in_vector, void *r_value) const override; }; class GVVectorArray_For_SingleGVArray : public GVVectorArray { @@ -129,9 +129,9 @@ class GVVectorArray_For_SingleGVArray : public GVVectorArray { } protected: - int64_t get_vector_size_impl(const int64_t index) const override; - void get_vector_element_impl(const int64_t index, - const int64_t index_in_vector, + int64_t get_vector_size_impl(int64_t index) const override; + void get_vector_element_impl(int64_t index, + int64_t index_in_vector, void *r_value) const override; bool is_single_vector_impl() const override; @@ -148,9 +148,9 @@ class GVVectorArray_For_SingleGSpan : public GVVectorArray { } protected: - int64_t get_vector_size_impl(const int64_t UNUSED(index)) const override; - void get_vector_element_impl(const int64_t UNUSED(index), - const int64_t index_in_vector, + int64_t get_vector_size_impl(int64_t UNUSED(index)) const override; + void get_vector_element_impl(int64_t UNUSED(index), + int64_t index_in_vector, void *r_value) const override; bool is_single_vector_impl() const override; |