CppCheck : Make sure all variables are initialized in constructor

This commit is contained in:
Magne Sjaastad committed 2018-12-21 11:30:29 +01:00
1 parent 8bc8ac5e58
commit 6b952add64
4 files changed
+15 -11

No files matched your search

@@ -246,9 +246,11 @@ RigCompletionData::CompletionType RicMswPerforationICV::completionType() const
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
RicMswPerforationAICD::RicMswPerforationAICD(const QString& label,
const RimWellPathValve* wellPathValve)
RicMswPerforationAICD::RicMswPerforationAICD(const QString& label, const RimWellPathValve* wellPathValve)
: RicMswValve(label, wellPathValve)
, m_valid(false)
, m_deviceOpen(false)
, m_length(0.0)
{
}
@@ -178,4 +178,4 @@ private:
bool m_deviceOpen;
std::array<double, AICD_NUM_PARAMS> m_parameters;
double m_length;
};
};