From 923e8c158e95c667d3a232b2803d01e3e6142a03 Mon Sep 17 00:00:00 2001 From: Stefano Avallone Date: Mon, 1 Sep 2025 12:12:08 +0200 Subject: [PATCH] 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. --- utils/print-introspected-doxygen.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/utils/print-introspected-doxygen.cc b/utils/print-introspected-doxygen.cc index ca96d1e69..43dea7403 100644 --- a/utils/print-introspected-doxygen.cc +++ b/utils/print-introspected-doxygen.cc @@ -453,7 +453,6 @@ StaticInformation::DoGather(TypeId tid) TypeId pointee = ptrChecker->GetPointeeTypeId(); // See if this is a pointer to an Object. - Ptr object = CreateObject(); TypeId objectTypeId = Object::GetTypeId(); if (objectTypeId == pointee) {