Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Pimenov <m@maps.me>2016-05-27 19:40:55 +0300
committerMaxim Pimenov <m@maps.me>2016-05-31 14:54:46 +0300
commitf672cb0b8227ddafcd6b271724dda3e05df9bfef (patch)
tree423ac795cf5da4a96136416827e943040f19a1b5 /search/retrieval.cpp
parent59f40d7669598a229ffa4f6269e17234f9af9506 (diff)
[search] Got rid of the v2 directory and namespace.
Diffstat (limited to 'search/retrieval.cpp')
-rw-r--r--search/retrieval.cpp24
1 files changed, 10 insertions, 14 deletions
diff --git a/search/retrieval.cpp b/search/retrieval.cpp
index a2ecb76677..8a312d8f6b 100644
--- a/search/retrieval.cpp
+++ b/search/retrieval.cpp
@@ -1,13 +1,12 @@
#include "retrieval.hpp"
-#include "cancel_exception.hpp"
-#include "feature_offset_match.hpp"
-#include "interval_set.hpp"
-#include "search_index_values.hpp"
-#include "search_trie.hpp"
-
-#include "v2/mwm_context.hpp"
-#include "v2/token_slice.hpp"
+#include "search/cancel_exception.hpp"
+#include "search/feature_offset_match.hpp"
+#include "search/interval_set.hpp"
+#include "search/mwm_context.hpp"
+#include "search/search_index_values.hpp"
+#include "search/search_trie.hpp"
+#include "search/token_slice.hpp"
#include "indexer/feature.hpp"
#include "indexer/feature_algo.hpp"
@@ -30,8 +29,6 @@ using osm::Editor;
namespace search
{
-namespace v2
-{
namespace
{
class FeaturesCollector
@@ -160,7 +157,7 @@ bool MatchFeatureByName(FeatureType const & ft, QueryParams const & params)
return matched;
}
-bool MatchFeatureByPostcode(FeatureType const & ft, v2::TokenSlice const & slice)
+bool MatchFeatureByPostcode(FeatureType const & ft, TokenSlice const & slice)
{
string const postcode = ft.GetMetadata().Get(feature::Metadata::FMD_POSTCODE);
vector<strings::UniString> tokens;
@@ -252,7 +249,7 @@ unique_ptr<coding::CompressedBitVector> RetrievePostcodeFeaturesImpl(
// Retrieves from the geometry index corresponding to handle all
// features from |coverage|.
unique_ptr<coding::CompressedBitVector> RetrieveGeometryFeaturesImpl(
- v2::MwmContext const & context, my::Cancellable const & cancellable,
+ MwmContext const & context, my::Cancellable const & cancellable,
covering::IntervalsT const & coverage, int scale)
{
vector<uint64_t> features;
@@ -331,9 +328,8 @@ unique_ptr<coding::CompressedBitVector> RetrieveGeometryFeatures(
m2::RectD const & rect, int scale)
{
covering::IntervalsT coverage;
- v2::CoverRect(rect, scale, coverage);
+ CoverRect(rect, scale, coverage);
return RetrieveGeometryFeaturesImpl(context, cancellable, coverage, scale);
}
-} // namespace v2
} // namespace search