Skip to content

Commit bb05bab

Browse files
committed
Refactored how Auxiliary is cleared by Data subclasses
1 parent 68ecba1 commit bb05bab

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

include/vsg/core/Array.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ namespace vsg
373373
vsg::deallocate(_data);
374374
}
375375

376-
Data::_delete();
376+
_clear();
377377
}
378378

379379
private:

include/vsg/core/Array2D.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ namespace vsg
369369
vsg::deallocate(_data);
370370
}
371371

372-
Data::_delete();
372+
_clear();
373373
}
374374

375375
private:

include/vsg/core/Array3D.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ namespace vsg
385385
vsg::deallocate(_data);
386386
}
387387

388-
Data::_delete();
388+
_clear();
389389
}
390390

391391
private:

include/vsg/core/Data.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ namespace vsg
227227
virtual ~Data() {}
228228

229229
void _copy(const Data& rhs);
230-
void _delete();
230+
void _clear();
231231

232232
ModifiedCount _modifiedCount;
233233

src/vsg/core/Data.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ void Data::_copy(const Data& rhs)
128128
}
129129
}
130130

131-
void Data::_delete()
131+
void Data::_clear()
132132
{
133133
if (getAuxiliary()) getAuxiliary()->clear();
134134
}

0 commit comments

Comments
 (0)