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.
This commit is contained in:
Stefano Avallone
2025-09-01 12:12:08 +02:00
committed by Tom Henderson
parent 9eee8a345a
commit 923e8c158e

View File

@@ -453,7 +453,6 @@ StaticInformation::DoGather(TypeId tid)
TypeId pointee = ptrChecker->GetPointeeTypeId();
// See if this is a pointer to an Object.
Ptr<Object> object = CreateObject<Object>();
TypeId objectTypeId = Object::GetTypeId();
if (objectTypeId == pointee)
{