From 952e10936c5d59da63aa40a7fed8e20a0747c9e1 Mon Sep 17 00:00:00 2001 From: Dennis Luxen Date: Mon, 20 Oct 2014 10:58:45 +0200 Subject: [PATCH] rename variable --- Tools/components.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Tools/components.cpp b/Tools/components.cpp index 73203d5d9..b60077bd0 100644 --- a/Tools/components.cpp +++ b/Tools/components.cpp @@ -72,15 +72,15 @@ int main(int argc, char *argv[]) { throw OSRMException("Could not access files"); } - uint32_t usable_restriction_count = 0; - restriction_ifstream.read((char *)&usable_restriction_count, sizeof(uint32_t)); - restrictions_vector.resize(usable_restriction_count); + uint32_t usable_restrictions = 0; + restriction_ifstream.read((char *)&usable_restrictions, sizeof(uint32_t)); + restrictions_vector.resize(usable_restrictions); // load restrictions - if (usable_restriction_count > 0) + if (usable_restrictions > 0) { restriction_ifstream.read((char *)&(restrictions_vector[0]), - usable_restriction_count * sizeof(TurnRestriction)); + usable_restrictions * sizeof(TurnRestriction)); } restriction_ifstream.close(); @@ -100,7 +100,7 @@ int main(int argc, char *argv[]) restrictions_vector); input_stream.close(); - BOOST_ASSERT_MSG(restrictions_vector.size() == usable_restriction_count, + BOOST_ASSERT_MSG(restrictions_vector.size() == usable_restrictions, "size of restrictions_vector changed"); SimpleLogger().Write() << restrictions_vector.size() << " restrictions, "