mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
GCC: Fix warning related to memory alignment seen on gcc11
This commit is contained in:
parent
6cc8855606
commit
e583c3a994
@ -29,7 +29,7 @@ class RimSummaryCaseCollection;
|
||||
class RimEclipseCase;
|
||||
class RigWellPath;
|
||||
|
||||
class RifReaderEnsembleStatisticsRft : public RifReaderRftInterface, public cvf::Object
|
||||
class RifReaderEnsembleStatisticsRft : public RifReaderRftInterface
|
||||
{
|
||||
public:
|
||||
RifReaderEnsembleStatisticsRft( const RimSummaryCaseCollection* summaryCaseCollection, RimEclipseCase* eclipseCase );
|
||||
|
@ -167,7 +167,7 @@ std::vector<QString> RimWellRftEnsembleCurveSet::parametersWithVariation() const
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimWellRftEnsembleCurveSet::clearEnsembleStatistics()
|
||||
{
|
||||
m_statisticsEclipseRftReader = new RifReaderEnsembleStatisticsRft( m_ensemble(), m_eclipseCase() );
|
||||
m_statisticsEclipseRftReader = std::make_unique<RifReaderEnsembleStatisticsRft>( m_ensemble(), m_eclipseCase() );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@ -227,7 +227,7 @@ RimEclipseCase* RimWellRftEnsembleCurveSet::eclipseCase() const
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RifReaderRftInterface* RimWellRftEnsembleCurveSet::statisticsEclipseRftReader()
|
||||
{
|
||||
return m_statisticsEclipseRftReader.p();
|
||||
return m_statisticsEclipseRftReader.get();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -87,7 +87,7 @@ private:
|
||||
caf::PdmField<QString> m_ensembleParameter;
|
||||
caf::PdmChildField<RimRegularLegendConfig*> m_ensembleLegendConfig;
|
||||
|
||||
cvf::ref<RifReaderEnsembleStatisticsRft> m_statisticsEclipseRftReader;
|
||||
std::unique_ptr<RifReaderEnsembleStatisticsRft> m_statisticsEclipseRftReader;
|
||||
|
||||
protected:
|
||||
void initAfterRead() override;
|
||||
|
Loading…
Reference in New Issue
Block a user