Fix: Set name in constructor

This commit is contained in:
njohnson 2025-09-10 21:57:07 -04:00
parent 631dbdfa53
commit 1e24a2cc81

View File

@ -6,6 +6,7 @@ XCLeafBrushNodeData::XCLeafBrushNodeData()
, mLeaf(new XCLeafBrushNodeLeaf()) , mLeaf(new XCLeafBrushNodeLeaf())
, mChildren(new XCLeafBrushNodeChildren()) , mChildren(new XCLeafBrushNodeChildren())
{ {
SetName("C Leaf Brush Node Data");
} }
XCLeafBrushNodeData::~XCLeafBrushNodeData() XCLeafBrushNodeData::~XCLeafBrushNodeData()
@ -13,7 +14,7 @@ XCLeafBrushNodeData::~XCLeafBrushNodeData()
} }
void XCLeafBrushNodeData::ParseData(QDataStream *aStream) { void XCLeafBrushNodeData::ParseData(XDataStream *aStream) {
if (GetPtr() == -1) { if (GetPtr() == -1) {
// We need to determine which part of the union to parse // We need to determine which part of the union to parse
// For simplicity, we'll assume it's always leaf for now // For simplicity, we'll assume it's always leaf for now