diff -r be056e87c8ca -r 6e79c1cb83e6 src/documentmanager.cpp --- 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(this->sender()); + Model* const model = qobject_cast(this->sender()); const std::optional modelId = this->findIdForModel(model); if (modelId.has_value()) { this->polygonCaches[*modelId].needRecache = true;