Files
ResInsight/Fwk/AppFwk/cafProjectDataModel/cafPdmObjectGroup.cpp
T
Magne Sjaastad 64a7546660 Fix Unity build conflict: remove duplicate PdmObjectCollection from cafPdmObjectGroup
Remove the unused non-template PdmObjectCollection class from cafPdmObjectGroup.h/.cpp.
This class conflicted with the template caf::PdmObjectCollection<T> in cafPdmObjectCollection.h,
causing MSVC redefinition errors in Unity builds. The class was dead code with no usages
in application code.

Also correct forward declarations in test MainWindow headers from PdmObjectCollection
to PdmObjectGroup, matching actual usage in the .cpp files.
2026-03-21 17:24:22 +01:00

48 lines
1.3 KiB
C++

#include "cafPdmObjectGroup.h"
#include "cafInternalPdmXmlFieldCapability.h"
#include <QFile>
namespace caf
{
CAF_PDM_SOURCE_INIT( PdmObjectGroup, "PdmObjectGroup" );
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
PdmObjectGroup::PdmObjectGroup()
{
CAF_PDM_InitObject( "Object Group" );
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
PdmObjectGroup::~PdmObjectGroup()
{
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void PdmObjectGroup::deleteObjects()
{
size_t it;
for ( it = 0; it != objects.size(); ++it )
{
delete objects[it];
}
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void PdmObjectGroup::addObject( PdmObjectHandle* obj )
{
objects.push_back( obj );
}
} // End of namespace caf