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:
authorrachytski <siarhei.rachytski@gmail.com>2011-11-21 17:55:28 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:28:29 +0300
commit18228caef2fd856c0d62cbec7b1c71a005023ad5 (patch)
treec2c8f1d4bde96f0b366edfc9bd6dd5ca0c30bf0e /indexer/drawing_rules.cpp
parente3d4839aa71ad7627fbba6abe38ac35ed293717d (diff)
clearing all cached ResourceStyle id's in RenderPolicy destructor.
Diffstat (limited to 'indexer/drawing_rules.cpp')
-rw-r--r--indexer/drawing_rules.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/indexer/drawing_rules.cpp b/indexer/drawing_rules.cpp
index 8b6bcfcbe4..31f1da4a35 100644
--- a/indexer/drawing_rules.cpp
+++ b/indexer/drawing_rules.cpp
@@ -1550,4 +1550,10 @@ void RulesHolder::LoadFromProto(string const & buffer)
classif().GetMutableRoot()->ForEachObject(bind<void>(ref(doSet), _1));
}
+void RulesHolder::ClearCaches()
+{
+ ForEachRule(bind(&BaseRule::MakeEmptyID, _4));
+ ForEachRule(bind(&BaseRule::MakeEmptyID2, _4));
+}
+
}