Missing initializations

This commit is contained in:
Dennis Luxen 2011-06-01 09:08:36 +00:00
parent f2a3041ce7
commit 46afc9fb08

View File

@ -23,7 +23,7 @@ or see http://www.gnu.org/licenses/agpl.txt.
struct _GridEdge {
_GridEdge(NodeID s, NodeID t, _Coordinate sc, _Coordinate tc) : start(s), target(t), startCoord(sc), targetCoord(tc) {}
_GridEdge() {}
_GridEdge() : start(UINT_MAX), target(UINT_MAX) {}
NodeID start;
NodeID target;
_Coordinate startCoord;
@ -31,7 +31,7 @@ struct _GridEdge {
};
struct GridEntry {
GridEntry() {}
GridEntry() : fileIndex(UINT_MAX), ramIndex(UINT_MAX){}
GridEntry(_GridEdge e, unsigned f, unsigned r) : edge(e), fileIndex(f), ramIndex(r) {}
_GridEdge edge;
unsigned fileIndex;