Skip to content
Snippets Groups Projects
Commit 404efba1 authored by Sreekanth Arikatla's avatar Sreekanth Arikatla
Browse files

BUG: Default pointer initialization to nullptr

parent f465c559
No related branches found
No related tags found
1 merge request!292Bug fixes and refactoring
......@@ -136,8 +136,8 @@ private:
///> Pointer to the Eigen's Conjugate gradient solver
Eigen::ConjugateGradient<SparseMatrixd> m_cgSolver;
std::vector<LinearProjectionConstraint> *m_FixedLinearProjConstraints;
std::vector<LinearProjectionConstraint> *m_DynamicLinearProjConstraints;
std::vector<LinearProjectionConstraint> *m_FixedLinearProjConstraints = nullptr;
std::vector<LinearProjectionConstraint> *m_DynamicLinearProjConstraints = nullptr;
};
} // imstk
......
......@@ -37,7 +37,7 @@ GaussSeidel::solve(Vectord& x)
return;
}
if (m_FixedLinearProjConstraints->size() == 0)
if (!m_FixedLinearProjConstraints)
{
this->gaussSeidelSolve(x);
}
......
......@@ -132,8 +132,8 @@ public:
private:
std::vector<LinearProjectionConstraint> *m_FixedLinearProjConstraints;
std::vector<LinearProjectionConstraint> *m_DynamicLinearProjConstraints;
std::vector<LinearProjectionConstraint> *m_FixedLinearProjConstraints = nullptr;
std::vector<LinearProjectionConstraint> *m_DynamicLinearProjConstraints = nullptr;
};
} // imstk
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment