added a missing const

Wed, 25 May 2022 17:48:18 +0300

author
Teemu Piippo <teemu@hecknology.net>
date
Wed, 25 May 2022 17:48:18 +0300
changeset 195
6e79c1cb83e6
parent 194
be056e87c8ca
child 196
6bcb284679d4

added a missing const

src/documentmanager.cpp file | annotate | diff | comparison | revisions
--- 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