diff --git a/apps/opencs/model/world/columnimp.cpp b/apps/opencs/model/world/columnimp.cpp index 89190023c6..215e4c3dfc 100644 --- a/apps/opencs/model/world/columnimp.cpp +++ b/apps/opencs/model/world/columnimp.cpp @@ -344,7 +344,7 @@ namespace CSMWorld QStringList selectionInfo; const std::vector& instances = record.get().selectedInstances; - for (std::string instance : instances) + for (const std::string& instance : instances) selectionInfo << QString::fromStdString(instance); data.setValue(selectionInfo);