aboutsummaryrefslogtreecommitdiffstats
path: root/gui
diff options
context:
space:
mode:
authorSergiusz Bazanski <q3k@q3k.org>2018-08-01 03:17:02 +0100
committerSergiusz Bazanski <q3k@q3k.org>2018-08-01 03:17:02 +0100
commit9fb9eab6c9699df5cd86ca03563e0fa871defb83 (patch)
tree43fcb51fdf7138d80f0defc5361a042a4c15f715 /gui
parentd80bacfe67bbd52516878363a3e21c753dc7c328 (diff)
downloadnextpnr-9fb9eab6c9699df5cd86ca03563e0fa871defb83.tar.gz
nextpnr-9fb9eab6c9699df5cd86ca03563e0fa871defb83.tar.bz2
nextpnr-9fb9eab6c9699df5cd86ca03563e0fa871defb83.zip
gui: cosmetics
Diffstat (limited to 'gui')
-rw-r--r--gui/treemodel.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/treemodel.h b/gui/treemodel.h
index 61dc339d..15370658 100644
--- a/gui/treemodel.h
+++ b/gui/treemodel.h
@@ -195,7 +195,7 @@ class ElementList : public Item
// short-lived (as it will change when the map mutates.
const std::vector<ElementT> *elements() const
{
- return &map_->at(std::pair<int, int>(x_, y_));
+ return &map_->at(std::make_pair(x_, y_));
}
public:
@@ -306,7 +306,7 @@ class ElementXYRoot : public Item
y_present.clear();
// First find all the elements in all Y coordinates in this X.
for (int j = 0; j < ctx->getGridDimY(); j++) {
- if (map_.count(std::pair<int, int>(i, j)) == 0)
+ if (map_.count(std::make_pair(i, j)) == 0)
continue;
y_present.push_back(j);
}