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:
committed by
Tom Henderson
parent
9eee8a345a
commit
923e8c158e
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user