mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-24 22:27:55 -05:00
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.
48 lines
1.3 KiB
C++
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
|