diff --git a/gui/designwidget.cc b/gui/designwidget.cc index daeea19d..8be71f3f 100644 --- a/gui/designwidget.cc +++ b/gui/designwidget.cc @@ -290,7 +290,7 @@ void DesignWidget::newContext(Context *ctx) { TreeModel::ElementXYRoot::ElementMap belMap; - for (auto bel : ctx->getBels()) { + for (const auto& bel : ctx->getBels()) { auto loc = ctx->getBelLocation(bel); belMap[std::pair(loc.x, loc.y)].push_back(bel); }