diff options
Diffstat (limited to 'gui')
-rw-r--r-- | gui/designwidget.cc | 2 |
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);
}
|