aboutsummaryrefslogtreecommitdiffstats
path: root/gui/designwidget.cc
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2018-10-30 08:07:31 +0100
committerMiodrag Milanovic <mmicko@gmail.com>2018-10-30 08:07:31 +0100
commit0a3ebfbb5b4f502e66861d3857c83b825ac34795 (patch)
tree08bf605991c80d1fba444e2da7ab5a7e7516b6c9 /gui/designwidget.cc
parent02edd66ae9494e0323e618747eeb0d38f0df75d4 (diff)
downloadnextpnr-0a3ebfbb5b4f502e66861d3857c83b825ac34795.tar.gz
nextpnr-0a3ebfbb5b4f502e66861d3857c83b825ac34795.tar.bz2
nextpnr-0a3ebfbb5b4f502e66861d3857c83b825ac34795.zip
change to const auto&
Diffstat (limited to 'gui/designwidget.cc')
-rw-r--r--gui/designwidget.cc2
1 files changed, 1 insertions, 1 deletions
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<BelId>::ElementMap belMap;
- for (auto bel : ctx->getBels()) {
+ for (const auto& bel : ctx->getBels()) {
auto loc = ctx->getBelLocation(bel);
belMap[std::pair<int, int>(loc.x, loc.y)].push_back(bel);
}