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:
authorvng <viktor.govako@gmail.com>2013-04-25 13:04:08 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:53:48 +0300
commit585d9e3ad340345568eaedafc0c3b7fc0db8c6b3 (patch)
tree7ce0316f9c5e52186c94a63a5db727fe05b16a57 /indexer/feature_visibility.cpp
parent6a395b0aba57fc4be818c87b183b9ca3f5d1f965 (diff)
Store drawing keys for feature in buffer_vector<16> - speedup feature reading.
Diffstat (limited to 'indexer/feature_visibility.cpp')
-rw-r--r--indexer/feature_visibility.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/indexer/feature_visibility.cpp b/indexer/feature_visibility.cpp
index 8018efc3d7..aac7979143 100644
--- a/indexer/feature_visibility.cpp
+++ b/indexer/feature_visibility.cpp
@@ -96,12 +96,12 @@ namespace
{
int m_scale;
ClassifObject::FeatureGeoType m_ft;
- vector<drule::Key> & m_keys;
+ drule::KeysT & m_keys;
string & m_name;
public:
DrawRuleGetter(int scale, feature::EGeomType ft,
- vector<drule::Key> & keys, string & name)
+ drule::KeysT & keys, string & name)
: m_scale(scale), m_ft(ClassifObject::FeatureGeoType(ft)), m_keys(keys), m_name(name)
{
}
@@ -125,7 +125,7 @@ namespace
}
pair<int, bool> GetDrawRule(FeatureBase const & f, int level,
- vector<drule::Key> & keys, string & names)
+ drule::KeysT & keys, string & names)
{
feature::TypesHolder types(f);
@@ -205,7 +205,7 @@ namespace
void operator() (ClassifObject const *) {}
bool operator() (ClassifObject const * p, bool & res)
{
- vector<drule::Key> keys;
+ drule::KeysT keys;
p->GetSuitable(m_scale, m_ft, keys);
for (size_t i = 0; i < keys.size(); ++i)