--- a/src/polygoncache.h Tue Jun 28 22:18:11 2022 +0300 +++ b/src/polygoncache.h Wed Jun 29 14:11:58 2022 +0300 @@ -18,11 +18,11 @@ struct PolygonCache { using vector_type = std::vector<WithId<PolygonElement>>; - vector_type cachedPolygons; + vector_type polygons; bool needRecache = true; }; -const PolygonCache::vector_type* getCachedPolygons( +void recacheIfNeeded( PolygonCache* cache, Model* model, class DocumentManager* documents);