Initial Grease Pencil 3.0 stage #106848
|
@ -39,11 +39,7 @@ class TreeNode : public ::GreasePencilLayerTreeNode {
|
||||||
this->type = type;
|
this->type = type;
|
||||||
|
|||||||
this->name = BLI_strdup(name.c_str());
|
this->name = BLI_strdup(name.c_str());
|
||||||
}
|
}
|
||||||
TreeNode(const TreeNode &other) : children_(other.children_)
|
TreeNode(const TreeNode &other) = delete;
|
||||||
{
|
|
||||||
this->type = other.type;
|
|
||||||
this->name = BLI_strdup(other.name);
|
|
||||||
}
|
|
||||||
TreeNode(TreeNode &&other) : children_(std::move(other.children_))
|
TreeNode(TreeNode &&other) : children_(std::move(other.children_))
|
||||||
{
|
{
|
||||||
this->name = other.name;
|
this->name = other.name;
|
||||||
|
|
Loading…
Reference in New Issue
Is there a particular reason you remove copy assignment but keep copy construction defined?
Just because copying should be explicit. And removing the copy assignment constructor avoids errors.