diff options
author | Marius Kintel <marius@kintel.net> | 2011-09-09 04:10:33 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2011-09-09 04:10:33 (GMT) |
commit | 09cc0496f7ce61e2bcbce80e067e0fac8054599a (patch) | |
tree | 76905edf7f13f5bea18be54edfc98a64d994e382 /src/PolySetEvaluator.h | |
parent | cbba974d3ac1edeb716a1384a2262ed5447fa9e6 (diff) |
Make PolySet cache global
Diffstat (limited to 'src/PolySetEvaluator.h')
-rw-r--r-- | src/PolySetEvaluator.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/PolySetEvaluator.h b/src/PolySetEvaluator.h index 1a97cb5..b7c490d 100644 --- a/src/PolySetEvaluator.h +++ b/src/PolySetEvaluator.h @@ -9,7 +9,7 @@ class PolySetEvaluator { public: - PolySetEvaluator(const Tree &tree) : cache(100000), tree(tree) {} + PolySetEvaluator(const Tree &tree) : tree(tree) {} virtual ~PolySetEvaluator() {} const Tree &getTree() const { return this->tree; } @@ -23,7 +23,7 @@ public: virtual PolySet *evaluatePolySet(const class RenderNode &) { return NULL; } void clearCache() { - this->cache.clear(); + cache.clear(); } void printCache(); protected: @@ -35,7 +35,7 @@ protected: ~cache_entry() { } }; - QCache<std::string, cache_entry> cache; + static QCache<std::string, cache_entry> cache; private: const Tree &tree; |