Skip to content

Commit 923e8c1

Browse files
stavallotomhenderson
authored andcommitted
utils: p-i-d StaticInformation::DoGather() does not need to create an Object
Creating an Object would call ObjectBase::ConstructSelf() on an object with "ns3::Object" TypeId, thus hitting the abort macro added to prevent calling ObjectBase::Constructself() in the constructor of a class deriving from the Object class.
1 parent 9eee8a3 commit 923e8c1

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

utils/print-introspected-doxygen.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,6 @@ StaticInformation::DoGather(TypeId tid)
453453
TypeId pointee = ptrChecker->GetPointeeTypeId();
454454

455455
// See if this is a pointer to an Object.
456-
Ptr<Object> object = CreateObject<Object>();
457456
TypeId objectTypeId = Object::GetTypeId();
458457
if (objectTypeId == pointee)
459458
{

0 commit comments

Comments
 (0)