src/documentmanager.cpp

changeset 195
6e79c1cb83e6
parent 194
be056e87c8ca
child 200
ca23936b455b
--- 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;

mercurial