From 0a3ebfbb5b4f502e66861d3857c83b825ac34795 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Tue, 30 Oct 2018 08:07:31 +0100 Subject: [PATCH] change to const auto& --- gui/designwidget.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }