@@ -196,7 +196,7 @@ class HighsMatrixSlice<HighsTripletListSlice> {
196196 using pointer = const HighsSliceNonzero*;
197197 using reference = const HighsSliceNonzero&;
198198
199- iterator (HighsInt node) : currentNode(node) {}
199+ iterator (HighsInt node) : pos_(), nodeNext( nullptr ), currentNode(node) {}
200200 iterator (const HighsInt* nodeIndex, const double * nodeValue,
201201 const HighsInt* nodeNext, HighsInt node)
202202 : pos_(node == -1 ? nullptr : nodeIndex + node,
@@ -276,7 +276,8 @@ class HighsMatrixSlice<HighsTripletTreeSlicePreOrder> {
276276 using pointer = const HighsSliceNonzero*;
277277 using reference = const HighsSliceNonzero&;
278278
279- iterator (HighsInt node) : currentNode(node) {}
279+ iterator (HighsInt node)
280+ : pos_(), nodeLeft(nullptr ), nodeRight(nullptr ), currentNode(node) {}
280281 iterator (const HighsInt* nodeIndex, const double * nodeValue,
281282 const HighsInt* nodeLeft, const HighsInt* nodeRight, HighsInt node)
282283 : pos_(nodeIndex + node, nodeValue + node),
@@ -374,7 +375,8 @@ class HighsMatrixSlice<HighsTripletTreeSliceInOrder> {
374375 using pointer = const HighsSliceNonzero*;
375376 using reference = const HighsSliceNonzero&;
376377
377- iterator (HighsInt node) : currentNode(node) {}
378+ iterator (HighsInt node)
379+ : pos_(), nodeLeft(nullptr ), nodeRight(nullptr ), currentNode(node) {}
378380 iterator (const HighsInt* nodeIndex, const double * nodeValue,
379381 const HighsInt* nodeLeft, const HighsInt* nodeRight, HighsInt node)
380382 : pos_(nodeIndex, nodeValue),
@@ -477,7 +479,7 @@ class HighsMatrixSlice<HighsTripletPositionSlice> {
477479 using pointer = const HighsSliceNonzero*;
478480 using reference = const HighsSliceNonzero&;
479481
480- iterator (const HighsInt* node) : node(node) {}
482+ iterator (const HighsInt* node) : pos_(), node(node), currentNode( 0 ) {}
481483 iterator (const HighsInt* nodeIndex, const double * nodeValue,
482484 const HighsInt* node)
483485 : pos_(nodeIndex, nodeValue), node(node), currentNode(0 ) {}
0 commit comments