From b329ee53bf429f4ee9aaa16c98dc4c91de45610f Mon Sep 17 00:00:00 2001 From: Lev Dragunov Date: Fri, 19 Jun 2015 17:24:07 +0300 Subject: [PATCH] PR fixes. --- integration_tests/osrm_route_test.cpp | 2 +- routing/osrm2feature_map.cpp | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/integration_tests/osrm_route_test.cpp b/integration_tests/osrm_route_test.cpp index d7fa781fe2..e371e79bf4 100644 --- a/integration_tests/osrm_route_test.cpp +++ b/integration_tests/osrm_route_test.cpp @@ -27,7 +27,7 @@ namespace } // Strange asserts near Cupertino test - UNIT_TEST(CaliforniaCupertionFindPhantomAssetText) + UNIT_TEST(CaliforniaCupertinoFindPhantomAssertTest) { integration::CalculateRouteAndTestRouteLength(integration::GetAllMaps(), {-122.03448, 40.29689}, {0., 0.}, diff --git a/routing/osrm2feature_map.cpp b/routing/osrm2feature_map.cpp index 1d369effd2..8d15b9b58d 100644 --- a/routing/osrm2feature_map.cpp +++ b/routing/osrm2feature_map.cpp @@ -426,13 +426,12 @@ void OsrmFtSegBackwardIndex::Construct(OsrmFtSegMapping & mapping, const uint32_ TNodesList & nodesList = m_nodeIds.back(); size_t const foundNodes = nodesList.size(); sort(nodesList.begin(), nodesList.end()); - auto const endIt = unique(nodesList.begin(), nodesList.end()); - nodesList.erase(endIt, nodesList.end()); + nodesList.erase(unique(nodesList.begin(), nodesList.end()), nodesList.end()); removedNodes += foundNodes - nodesList.size(); } } - LOG(LINFO, ("Backward index constructor removes", removedNodes, "duplicates.")); + LOG(LDEBUG, ("Backward index constructor removed", removedNodes, "duplicates.")); // Pack and save index succinct::rs_bit_vector(inIndex).swap(m_rankIndex);