mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Use raw pointer instead of smart pointer
p4#: 20892
This commit is contained in:
parent
160456106a
commit
422c4ca54b
@ -72,12 +72,12 @@ void RimIdenticalGridCaseGroup::addCase(RimReservoir* reservoir)
|
||||
|
||||
RigMainGrid* incomingMainGrid = reservoir->reservoirData()->mainGrid();
|
||||
|
||||
if (m_mainGrid.isNull())
|
||||
if (!m_mainGrid)
|
||||
{
|
||||
m_mainGrid = incomingMainGrid;
|
||||
}
|
||||
|
||||
CVF_ASSERT(m_mainGrid.p() == incomingMainGrid);
|
||||
CVF_ASSERT(m_mainGrid == incomingMainGrid);
|
||||
|
||||
caseCollection()->reservoirs().push_back(reservoir);
|
||||
|
||||
@ -92,7 +92,7 @@ void RimIdenticalGridCaseGroup::addCase(RimReservoir* reservoir)
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RigMainGrid* RimIdenticalGridCaseGroup::mainGrid()
|
||||
{
|
||||
if (m_mainGrid.notNull()) return m_mainGrid.p();
|
||||
if (m_mainGrid) return m_mainGrid;
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
@ -55,6 +55,5 @@ protected:
|
||||
virtual caf::PdmFieldHandle* userDescriptionField();
|
||||
|
||||
private:
|
||||
cvf::ref<RigMainGrid> m_mainGrid;
|
||||
|
||||
RigMainGrid* m_mainGrid;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user