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:
Kristian Bendiksen
2021-08-30 10:19:45 +02:00
committed by GitHub
parent 414ee77aa8
commit 6547ef1525
5 changed files with 16 additions and 17 deletions

View File

@@ -47,7 +47,7 @@ public:
RimWellPath* wellPath() const;
void setWellLogChannelName( const QString& name );
void setWellLogFile( RimWellLogFile* wellLogFile );
void setIndexDepthOffsets( cvf::ref<RigWellLogIndexDepthOffset> depthOffsets );
void setIndexDepthOffsets( std::shared_ptr<RigWellLogIndexDepthOffset> depthOffsets );
// Overrides from RimWellLogPlotCurve
QString wellName() const override;
@@ -82,5 +82,5 @@ protected:
caf::PdmField<QString> m_wellLogChannelName;
caf::PdmField<QString> m_wellLogChannnelUnit;
cvf::ref<RigWellLogIndexDepthOffset> m_indexDepthOffsets;
std::shared_ptr<RigWellLogIndexDepthOffset> m_indexDepthOffsets;
};