mirror of
https://github.com/YosysHQ/nextpnr.git
synced 2026-04-19 01:17:47 +00:00
change to const auto&
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user