Const'ing parameter in function

This commit is contained in:
DennisOSRM 2011-12-20 18:50:37 +01:00
parent ac1908d464
commit 4cd615ba2e

View File

@ -358,7 +358,7 @@ private:
} }
} }
inline void _UnpackPath(std::deque<NodeID> & packedPath, std::vector<_PathData> & unpackedPath) const { inline void _UnpackPath(const std::deque<NodeID> & packedPath, std::vector<_PathData> & unpackedPath) const {
const unsigned sizeOfPackedPath = packedPath.size(); const unsigned sizeOfPackedPath = packedPath.size();
SimpleStack<std::pair<NodeID, NodeID> > recursionStack(sizeOfPackedPath); SimpleStack<std::pair<NodeID, NodeID> > recursionStack(sizeOfPackedPath);