diff options
author | gatecat <gatecat@ds0.me> | 2021-02-25 16:16:37 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-25 16:16:37 +0000 |
commit | de107da5b3c66d329de0a0430a67ca843e27f3bd (patch) | |
tree | e18884eb5006aa991402b3576e188d7977ef88e8 /gui/treemodel.h | |
parent | ab8dfcfba4544c6733d074b24b0529d431b66d29 (diff) | |
parent | 23413a4d12ad070c8a356c5a3186f81def705c54 (diff) | |
download | nextpnr-de107da5b3c66d329de0a0430a67ca843e27f3bd.tar.gz nextpnr-de107da5b3c66d329de0a0430a67ca843e27f3bd.tar.bz2 nextpnr-de107da5b3c66d329de0a0430a67ca843e27f3bd.zip |
Merge pull request #598 from YosysHQ/gatecat/compiler-flags
Tighten up compiler flags
Diffstat (limited to 'gui/treemodel.h')
-rw-r--r-- | gui/treemodel.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gui/treemodel.h b/gui/treemodel.h index 7b599e65..e9c42a0f 100644 --- a/gui/treemodel.h +++ b/gui/treemodel.h @@ -218,7 +218,7 @@ template <typename ElementT> class ElementList : public Item name.remove(0, prefix.size()); auto item = new IdStringItem(ctx_, idstring, this, child_type_); - managed_[idstring] = std::move(std::unique_ptr<Item>(item)); + managed_[idstring] = std::unique_ptr<Item>(item); } } @@ -306,7 +306,7 @@ template <typename ElementT> class ElementXYRoot : public Item // Create X list Item. auto item = new Item(QString("X%1").arg(i), this); - managed_labels_.push_back(std::move(std::unique_ptr<Item>(item))); + managed_labels_.push_back(std::unique_ptr<Item>(item)); for (auto j : y_present) { // Create Y list ElementList. @@ -314,7 +314,7 @@ template <typename ElementT> class ElementXYRoot : public Item new ElementList<ElementT>(ctx_, QString("Y%1").arg(j), item, &map_, i, j, getter_, child_type_); // Pre-populate list with one element, other Qt will never ask for more. item2->fetchMore(1); - managed_lists_.push_back(std::move(std::unique_ptr<ElementList<ElementT>>(item2))); + managed_lists_.push_back(std::unique_ptr<ElementList<ElementT>>(item2)); } } } |