mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
7834 cref removal (#7917)
* #7834 Well Log Statistics: prefer std::shared_ptr to cvf::ref. * #7834 Use std::map to avoid hard-coded array length.
This commit is contained in:
committed by
GitHub
parent
414ee77aa8
commit
6547ef1525
@@ -96,7 +96,7 @@ void RimWellLogFileCurve::onLoadDataAndUpdate( bool updateParentPlot )
|
||||
|
||||
bool rkbDiff = m_wellPath->wellPathGeometry() ? m_wellPath->wellPathGeometry()->rkbDiff() : 0.0;
|
||||
|
||||
if ( !m_indexDepthOffsets.isNull() )
|
||||
if ( m_indexDepthOffsets )
|
||||
{
|
||||
// Adjust depths by reassigning depths for top and bottom of layer for each K layer
|
||||
std::vector<double> kIndexValues = wellLogFile->values( RiaResultNames::indexKResultName() );
|
||||
@@ -289,7 +289,7 @@ void RimWellLogFileCurve::setWellLogFile( RimWellLogFile* wellLogFile )
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimWellLogFileCurve::setIndexDepthOffsets( cvf::ref<RigWellLogIndexDepthOffset> depthOffsets )
|
||||
void RimWellLogFileCurve::setIndexDepthOffsets( std::shared_ptr<RigWellLogIndexDepthOffset> depthOffsets )
|
||||
{
|
||||
m_indexDepthOffsets = depthOffsets;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user