From fdb46f5445022f18f21e21c9ed64a94e153dea48 Mon Sep 17 00:00:00 2001 From: Dennis Luxen Date: Mon, 18 Jul 2011 14:17:33 +0000 Subject: [PATCH] Missing return in operator[] --- DataStructures/NodeCoords.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/DataStructures/NodeCoords.h b/DataStructures/NodeCoords.h index bfdcb2ed0..8721bf0f6 100644 --- a/DataStructures/NodeCoords.h +++ b/DataStructures/NodeCoords.h @@ -39,18 +39,16 @@ struct NodeCoords { NodeT id; static NodeCoords min_value() - { + { return NodeCoords(-90*100000,-180*100000,numeric_limits::min()); - } + } static NodeCoords max_value() - { + { return NodeCoords(90*100000, 180*100000, numeric_limits::max()); - } + } - value_type operator[](size_t n) const - { - switch(n) - { + value_type operator[](size_t n) const { + switch(n) { case 1: return lat; break; @@ -62,6 +60,8 @@ struct NodeCoords { return UINT_MAX; break; } + assert(false); + return UINT_MAX; } };