Skip to content
Snippets Groups Projects
Commit 1238e85b authored by Elias Pipping's avatar Elias Pipping
Browse files

Initialize pointer members

Except shared pointers, which are automatically initialised to zero.
parent 50a3647a
No related branches found
No related tags found
No related merge requests found
......@@ -19,8 +19,9 @@ class IterationStep : virtual public NumProc, public CanIgnore<BitVectorType>
typedef BitVectorType BitVector;
//! Default constructor
IterationStep()
{}
IterationStep() {
x_ = nullptr;
}
/** \brief Destructor */
virtual ~IterationStep() {}
......
......@@ -24,7 +24,9 @@ class LinearIterationStep : public IterationStep<VectorType, BitVectorType>,
public:
//! Default constructor
LinearIterationStep() {}
LinearIterationStep() {
rhs_ = nullptr;
}
/** \brief Destructor */
virtual ~LinearIterationStep() {}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment