--- a/src/documentmanager.cpp Wed May 25 17:47:06 2022 +0300 +++ b/src/documentmanager.cpp Wed May 25 17:48:18 2022 +0300 @@ -379,7 +379,7 @@ void DocumentManager::modelModified() { - Model* model = qobject_cast<Model*>(this->sender()); + Model* const model = qobject_cast<Model*>(this->sender()); const std::optional<ModelId> modelId = this->findIdForModel(model); if (modelId.has_value()) { this->polygonCaches[*modelId].needRecache = true;