mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
CppCheck : Several fixes
Add missing initializers Guard potential null pointer access
This commit is contained in:
@@ -30,22 +30,24 @@ class RigFemResultAddress
|
||||
{
|
||||
public:
|
||||
RigFemResultAddress()
|
||||
: resultPosType(RIG_NODAL)
|
||||
, fieldName("")
|
||||
, componentName("")
|
||||
, timeLapseBaseFrameIdx(NO_TIME_LAPSE)
|
||||
, refKLayerIndex(NO_COMPACTION)
|
||||
{
|
||||
resultPosType = RIG_NODAL;
|
||||
fieldName = "";
|
||||
componentName = "";
|
||||
}
|
||||
|
||||
RigFemResultAddress(RigFemResultPosEnum resPosType,
|
||||
const std::string& aFieldName,
|
||||
const std::string& aComponentName,
|
||||
int timeLapseBaseFrameIdx = NO_TIME_LAPSE,
|
||||
int refKLayerIndex = NO_COMPACTION)
|
||||
: resultPosType(resPosType),
|
||||
fieldName(aFieldName),
|
||||
componentName(aComponentName),
|
||||
timeLapseBaseFrameIdx(timeLapseBaseFrameIdx),
|
||||
refKLayerIndex(refKLayerIndex)
|
||||
const std::string& aFieldName,
|
||||
const std::string& aComponentName,
|
||||
int timeLapseBaseFrameIdx = NO_TIME_LAPSE,
|
||||
int refKLayerIndex = NO_COMPACTION)
|
||||
: resultPosType(resPosType)
|
||||
, fieldName(aFieldName)
|
||||
, componentName(aComponentName)
|
||||
, timeLapseBaseFrameIdx(timeLapseBaseFrameIdx)
|
||||
, refKLayerIndex(refKLayerIndex)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user