Initialize pointer to nullptr

This commit is contained in:
Magne Sjaastad committed 2017-08-29 11:03:45 +02:00
1 parent 609bf4037b
commit 56312a4883
1 file changed
+1 -1
@@ -349,7 +349,7 @@ QString RiuResultTextBuilder::nncResultText()
{
size_t scalarResultIdx = m_reservoirView->currentFaultResultColors()->scalarResultIndex();
RiaDefines::ResultCatType resultType = m_reservoirView->currentFaultResultColors()->resultType();
const std::vector<double>* nncValues;
const std::vector<double>* nncValues = nullptr;
if (resultType == RiaDefines::STATIC_NATIVE)
{
nncValues = nncData->staticConnectionScalarResult(scalarResultIdx);