mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
CppCheck : Add missing initialization of pointer
This commit is contained in:
@@ -155,7 +155,7 @@ void RivNNCGeometryGenerator::textureCoordinates(cvf::Vec2fArray* textureCoords,
|
|||||||
|
|
||||||
textureCoords->resize(numVertices);
|
textureCoords->resize(numVertices);
|
||||||
cvf::Vec2f* rawPtr = textureCoords->ptr();
|
cvf::Vec2f* rawPtr = textureCoords->ptr();
|
||||||
const std::vector<double>* nncResultVals;
|
const std::vector<double>* nncResultVals = nullptr;
|
||||||
if (resultType == RiaDefines::STATIC_NATIVE)
|
if (resultType == RiaDefines::STATIC_NATIVE)
|
||||||
{
|
{
|
||||||
nncResultVals = m_nncData->staticConnectionScalarResult(scalarResultIndex);
|
nncResultVals = m_nncData->staticConnectionScalarResult(scalarResultIndex);
|
||||||
|
|||||||
Reference in New Issue
Block a user