System : Reorder initialization order to match declaration

This commit is contained in:
Magne Sjaastad 2018-02-23 22:38:08 +01:00
parent 34c6e3d906
commit 0006c786cf
11 changed files with 50 additions and 31 deletions

View File

@ -26,9 +26,9 @@
RigActiveCellsResultAccessor::RigActiveCellsResultAccessor(const RigGridBase* grid, const std::vector<double>* reservoirResultValues, const RigActiveCellInfo* activeCellInfo)
: m_grid(grid),
m_reservoirResultValues(reservoirResultValues),
m_activeCellInfo(activeCellInfo)
: m_activeCellInfo(activeCellInfo),
m_grid(grid),
m_reservoirResultValues(reservoirResultValues)
{
}

View File

@ -38,13 +38,13 @@ static size_t undefinedCornersArray[8] = {cvf::UNDEFINED_SIZE_T,
///
//--------------------------------------------------------------------------------------------------
RigCell::RigCell() :
m_gridLocalCellIndex(cvf::UNDEFINED_SIZE_T),
m_hostGrid(nullptr),
m_subGrid(nullptr),
m_parentCellIndex(cvf::UNDEFINED_SIZE_T),
m_mainGridCellIndex(cvf::UNDEFINED_SIZE_T),
m_subGrid(nullptr),
m_hostGrid(nullptr),
m_isInvalid(false),
m_gridLocalCellIndex(cvf::UNDEFINED_SIZE_T),
m_coarseningBoxIndex(cvf::UNDEFINED_SIZE_T)
m_coarseningBoxIndex(cvf::UNDEFINED_SIZE_T),
m_isInvalid(false)
{
memcpy(m_cornerIndices.data(), undefinedCornersArray, 8*sizeof(size_t));

View File

@ -35,13 +35,15 @@
///
//==================================================================================================
RigEclipseWellLogExtractor::RigEclipseWellLogExtractor(const RigEclipseCaseData* aCase, const RigWellPath* wellpath, const std::string& wellCaseErrorMsgName)
: m_caseData(aCase), RigWellLogExtractor(wellpath, wellCaseErrorMsgName)
RigEclipseWellLogExtractor::RigEclipseWellLogExtractor(const RigEclipseCaseData* aCase,
const RigWellPath* wellpath,
const std::string& wellCaseErrorMsgName)
: RigWellLogExtractor(wellpath, wellCaseErrorMsgName)
, m_caseData(aCase)
{
calculateIntersection();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------

View File

@ -52,8 +52,9 @@ public:
RigFlowDiagResultAddress(const std::string& aVariableName, PhaseSelection phaseSelection, const std::set<std::string>& someSelectedTracerNames)
: variableName(aVariableName),
phaseSelection(phaseSelection),
selectedTracerNames(someSelectedTracerNames) {}
selectedTracerNames(someSelectedTracerNames),
phaseSelection(phaseSelection)
{}
RigFlowDiagResultAddress(const std::string& aVariableName, PhaseSelection phaseSelection, const std::string& tracerName)
: variableName(aVariableName),

View File

@ -30,11 +30,15 @@
#include "RigWellPath.h"
#include "cvfGeometryTools.h"
#include "RigWellPathIntersectionTools.h"
//--------------------------------------------------------------------------------------------------
///
///
//--------------------------------------------------------------------------------------------------
RigGeoMechWellLogExtractor::RigGeoMechWellLogExtractor(RigGeoMechCaseData* aCase, const RigWellPath* wellpath, const std::string& wellCaseErrorMsgName)
:m_caseData(aCase), RigWellLogExtractor(wellpath, wellCaseErrorMsgName)
RigGeoMechWellLogExtractor::RigGeoMechWellLogExtractor(RigGeoMechCaseData* aCase,
const RigWellPath* wellpath,
const std::string& wellCaseErrorMsgName)
: RigWellLogExtractor(wellpath, wellCaseErrorMsgName)
, m_caseData(aCase)
{
calculateIntersection();
}

View File

@ -29,8 +29,8 @@
RigGridBase::RigGridBase(RigMainGrid* mainGrid):
m_gridPointDimensions(0,0,0),
m_mainGrid(mainGrid),
m_indexToStartOfCells(0)
m_indexToStartOfCells(0),
m_mainGrid(mainGrid)
{
if (mainGrid == nullptr)
{

View File

@ -92,9 +92,9 @@ class SingleLasFileMetaData
{
public:
SingleLasFileMetaData()
: m_minimumCurveValue(HUGE_VAL),
m_rkbDiff(HUGE_VAL),
m_exportTvdrkb(false)
: m_rkbDiff(HUGE_VAL)
, m_exportTvdrkb(false)
, m_minimumCurveValue(HUGE_VAL)
{
}

View File

@ -66,10 +66,12 @@ private:
class RigActiveCellsResultModifier : public RigResultModifier
{
public:
RigActiveCellsResultModifier(const RigGridBase* grid, std::vector<double>* reservoirResultValues, const RigActiveCellInfo* activeCellInfo)
: m_grid(grid),
m_reservoirResultValues(reservoirResultValues),
m_activeCellInfo(activeCellInfo)
RigActiveCellsResultModifier(const RigGridBase* grid,
const RigActiveCellInfo* activeCellInfo,
std::vector<double>* reservoirResultValues)
: m_grid(grid)
, m_activeCellInfo(activeCellInfo)
, m_reservoirResultValues(reservoirResultValues)
{
}
@ -85,8 +87,8 @@ public:
private:
const RigActiveCellInfo* m_activeCellInfo;
const RigGridBase* m_grid;
const RigActiveCellInfo* m_activeCellInfo;
std::vector<double>* m_reservoirResultValues;
};

View File

@ -90,7 +90,7 @@ cvf::ref<RigResultModifier> RigResultModifierFactory::createResultModifier(RigEc
bool useGlobalActiveIndex = eclipseCase->results(porosityModel)->isUsingGlobalActiveIndex(scalarResultIndex);
if (useGlobalActiveIndex)
{
cvf::ref<RigResultModifier> object = new RigActiveCellsResultModifier(grid, resultValues, eclipseCase->activeCellInfo(porosityModel));
cvf::ref<RigResultModifier> object = new RigActiveCellsResultModifier(grid, eclipseCase->activeCellInfo(porosityModel), resultValues);
return object;
}
else

View File

@ -160,8 +160,8 @@ public:
public:
RigWellResultFrame() :
m_isOpen(false),
m_productionType(UNDEFINED_PRODUCTION_TYPE)
m_productionType(UNDEFINED_PRODUCTION_TYPE),
m_isOpen(false)
{ }
const RigWellResultPoint* findResultCell(size_t gridIndex, size_t gridCellIndex) const;

View File

@ -45,7 +45,12 @@ struct RigWellLogExtractionTools
struct RigMDCellIdxEnterLeaveKey
{
RigMDCellIdxEnterLeaveKey(double md, size_t cellIdx, bool entering): measuredDepth(md), hexIndex(cellIdx), isEnteringCell(entering){}
RigMDCellIdxEnterLeaveKey(double md, size_t cellIdx, bool entering)
: measuredDepth(md)
, hexIndex(cellIdx)
, isEnteringCell(entering)
{
}
double measuredDepth;
size_t hexIndex;
@ -85,7 +90,12 @@ struct RigMDCellIdxEnterLeaveKey
struct RigMDEnterLeaveCellIdxKey
{
RigMDEnterLeaveCellIdxKey(double md, bool entering, size_t cellIdx ): measuredDepth(md), hexIndex(cellIdx), isEnteringCell(entering){}
RigMDEnterLeaveCellIdxKey(double md, bool entering, size_t cellIdx)
: measuredDepth(md)
, isEnteringCell(entering)
, hexIndex(cellIdx)
{
}
double measuredDepth;
bool isEnteringCell; // As opposed to leaving.