Initialize pointer to nullptr

This commit is contained in:
Magne Sjaastad 2017-08-29 10:54:26 +02:00
parent 609bf4037b
commit 56312a4883

View File

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