Refactor: forward-declare element type in collection headers

Move the element-type include from each migrated collection header into
its .cpp, leaving only a forward declaration in the header. Follows the
pattern from 9e4d79159 for RimJobCollection, made possible by the
constructor-time PdmObject base check.
This commit is contained in:
Kristian Bendiksen committed 2026-05-11 13:42:13 +02:00
1 parent 4feca2b920
commit 2fa7520b3a
25 files changed
+40 -35

No files matched your search

@@ -23,6 +23,7 @@
#include "Rim3dView.h"
#include "RimGridView.h"
#include "RimProject.h"
#include "RimSeismicView.h"
CAF_PDM_SOURCE_INIT( RimSeismicViewCollection, "SeismicViewCollection", "SeismicViewCollection" );
@@ -19,13 +19,12 @@
#include "RiaSeismicDefines.h"
#include "RimSeismicView.h"
#include "cafPdmObjectCollection.h"
#include <QString>
class RimSeismicDataInterface;
class RimSeismicView;
class RimSeismicViewCollection : public caf::PdmObjectCollection<RimSeismicView>
{