GCC: Fix warning related to memory alignment seen on gcc11

This commit is contained in:
Magne Sjaastad 2023-12-18 08:26:40 +01:00
parent 6cc8855606
commit e583c3a994
3 changed files with 4 additions and 4 deletions

View File

@ -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 );

View File

@ -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();
}
//--------------------------------------------------------------------------------------------------

View File

@ -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;