Skip to content
Snippets Groups Projects
Commit b7511a05 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

+ const

parent 669973ec
No related branches found
No related tags found
1 merge request!522resolve a number of clang-tidy warnings
...@@ -354,8 +354,8 @@ ProjectDocument::ReadResult ProjectDocument::readProject(QIODevice* device, ...@@ -354,8 +354,8 @@ ProjectDocument::ReadResult ProjectDocument::readProject(QIODevice* device,
itemWithMaterial->setMaterialModel(materialModel()); itemWithMaterial->setMaterialModel(materialModel());
// make a sanity check whether all materials are present // make a sanity check whether all materials are present
for (auto* multiLayerItem : m_applicationModels.sampleModel()->multiLayerItems()) for (const auto* multiLayerItem : m_applicationModels.sampleModel()->multiLayerItems())
for (auto* itemWithMaterial : multiLayerItem->itemsWithMaterial()) for (const auto* itemWithMaterial : multiLayerItem->itemsWithMaterial())
if (itemWithMaterial->materialItem() == nullptr) { if (itemWithMaterial->materialItem() == nullptr) {
QString message = QString("Material link is broken (id: '%1')") QString message = QString("Material link is broken (id: '%1')")
.arg(itemWithMaterial->materialIdentifier()); .arg(itemWithMaterial->materialIdentifier());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment