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
path: root/search
diff options
context:
space:
mode:
authorYury Melnichek <melnichek@gmail.com>2011-05-28 21:33:26 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:18:16 +0300
commitc110c494d685669bbbd4e18bb350ce597a667456 (patch)
tree1cba5eecffee006d08c01fd0781b054ecbf4c1b8 /search
parent830cda47508d3be6c42300a3f4704d71790f0cf4 (diff)
[search] No-op: fix a typo.
Diffstat (limited to 'search')
-rw-r--r--search/query.cpp18
-rw-r--r--search/query.hpp2
2 files changed, 10 insertions, 10 deletions
diff --git a/search/query.cpp b/search/query.cpp
index a863d66df2..e959596fa9 100644
--- a/search/query.cpp
+++ b/search/query.cpp
@@ -60,11 +60,11 @@ void Query::Search(function<void (Result const &)> const & f)
min(scales::GetUpperScale(), scales::GetScaleLevel(m_rect) + 1));
vector<Result> results;
- results.reserve(m_resuts.size());
- while (!m_resuts.empty())
+ results.reserve(m_results.size());
+ while (!m_results.empty())
{
- results.push_back(m_resuts.top().GenerateFinalResult());
- m_resuts.pop();
+ results.push_back(m_results.top().GenerateFinalResult());
+ m_results.pop();
}
for (vector<Result>::const_reverse_iterator it = results.rbegin(); it != results.rend(); ++it)
f(*it);
@@ -72,12 +72,12 @@ void Query::Search(function<void (Result const &)> const & f)
void Query::AddResult(IntermediateResult const & result)
{
- if (m_resuts.size() < 10)
- m_resuts.push(result);
- else if (result < m_resuts.top())
+ if (m_results.size() < 10)
+ m_results.push(result);
+ else if (result < m_results.top())
{
- m_resuts.pop();
- m_resuts.push(result);
+ m_results.pop();
+ m_results.push(result);
}
}
diff --git a/search/query.hpp b/search/query.hpp
index c7b3b40bb4..c46388d33a 100644
--- a/search/query.hpp
+++ b/search/query.hpp
@@ -37,7 +37,7 @@ public:
IndexType const * m_pIndex;
IndexType::Query m_indexQuery;
- priority_queue<IntermediateResult> m_resuts;
+ priority_queue<IntermediateResult> m_results;
};
} // namespace search::impl