[Bf-blender-cvs] [569dc4e7f0a] virtual-array-attributes: cleanup
Jacques Lucke
noreply at git.blender.org
Mon Apr 12 18:27:54 CEST 2021
Commit: 569dc4e7f0ae3ee5f31319c3f9000f27f19783fc
Author: Jacques Lucke
Date: Sat Apr 10 17:54:29 2021 +0200
Branches: virtual-array-attributes
https://developer.blender.org/rB569dc4e7f0ae3ee5f31319c3f9000f27f19783fc
cleanup
===================================================================
M source/blender/blenlib/BLI_virtual_array.hh
===================================================================
diff --git a/source/blender/blenlib/BLI_virtual_array.hh b/source/blender/blenlib/BLI_virtual_array.hh
index 7d9b8e5905a..dbd98f3a5f5 100644
--- a/source/blender/blenlib/BLI_virtual_array.hh
+++ b/source/blender/blenlib/BLI_virtual_array.hh
@@ -279,18 +279,18 @@ template<typename T> class VArray_For_Span : public VArray<T> {
}
};
-template<typename T> class VMutableArray_For_Span final : public VMutableArray<T> {
+template<typename T> class VMutableArray_For_MutableSpan final : public VMutableArray<T> {
private:
T *data_ = nullptr;
public:
- VMutableArray_For_Span(const MutableSpan<T> data)
+ VMutableArray_For_MutableSpan(const MutableSpan<T> data)
: VMutableArray<T>(data.size()), data_(data.data())
{
}
/* When this constructor is used, the #set_span_start method has to be used as well. */
- VMutableArray_For_Span(const int64_t size) : VMutableArray<T>(size)
+ VMutableArray_For_MutableSpan(const int64_t size) : VMutableArray<T>(size)
{
}
@@ -423,7 +423,8 @@ template<typename T> class VArray_As_Span final : public VArray_For_Span<T> {
}
};
-template<typename T> class VMutableArray_As_Span final : public VMutableArray_For_Span<T> {
+template<typename T>
+class VMutableArray_As_MutableSpan final : public VMutableArray_For_MutableSpan<T> {
private:
VMutableArray<T> &varray_;
Array<T> owned_data_;
@@ -431,7 +432,8 @@ template<typename T> class VMutableArray_As_Span final : public VMutableArray_Fo
bool show_not_applied_warning_ = true;
public:
- VMutableArray_As_Span(VMutableArray<T> &varray) : VMutableArray_For_Span<T>(varray.size())
+ VMutableArray_As_MutableSpan(VMutableArray<T> &varray)
+ : VMutableArray_For_MutableSpan<T>(varray.size())
{
if (varray_.is_span()) {
this->set_span_start(varray_.get_span().data());
@@ -449,7 +451,7 @@ template<typename T> class VMutableArray_As_Span final : public VMutableArray_Fo
show_not_applied_warning_ = false;
}
- ~VMutableArray_As_Span()
+ ~VMutableArray_As_MutableSpan()
{
if (show_not_applied_warning_) {
if (!apply_has_been_called_) {
More information about the Bf-blender-cvs
mailing list