Fixed some compiler warnings in attrmap command
authorClifford Wolf <clifford@clifford.at>
Wed, 10 Aug 2016 11:44:08 +0000 (13:44 +0200)
committerClifford Wolf <clifford@clifford.at>
Wed, 10 Aug 2016 11:44:08 +0000 (13:44 +0200)
passes/techmap/attrmap.cc

index 648d1bc5a6ce6a755e2b707c85e9af005b51a963..f715b63ed5b90a022b46adf7d3a1c1f0d5ee68c2 100644 (file)
@@ -174,14 +174,14 @@ struct AttrmapPass : public Pass {
                        if (arg == "-tocase" && argidx+1 < args.size()) {
                                auto action = new AttrmapTocase;
                                action->name = args[++argidx];
-                               actions.push_back(std::move(std::unique_ptr<AttrmapAction>(action)));
+                               actions.push_back(std::unique_ptr<AttrmapAction>(action));
                                continue;
                        }
                        if (arg == "-rename" && argidx+2 < args.size()) {
                                auto action = new AttrmapRename;
                                action->old_name = args[++argidx];
                                action->new_name = args[++argidx];
-                               actions.push_back(std::move(std::unique_ptr<AttrmapAction>(action)));
+                               actions.push_back(std::unique_ptr<AttrmapAction>(action));
                                continue;
                        }
                        if ((arg == "-map" || arg == "-imap") && argidx+2 < args.size()) {
@@ -204,7 +204,7 @@ struct AttrmapPass : public Pass {
                                action->new_name = arg2;
                                action->old_value = val1;
                                action->new_value = val2;
-                               actions.push_back(std::move(std::unique_ptr<AttrmapAction>(action)));
+                               actions.push_back(std::unique_ptr<AttrmapAction>(action));
                                continue;
                        }
                        if (arg == "-remove" && argidx+1 < args.size()) {
@@ -217,7 +217,7 @@ struct AttrmapPass : public Pass {
                                auto action = new AttrmapRemove;
                                action->name = arg1;
                                action->value = val1;
-                               actions.push_back(std::move(std::unique_ptr<AttrmapAction>(action)));
+                               actions.push_back(std::unique_ptr<AttrmapAction>(action));
                                continue;
                        }
                        if (arg == "-modattr") {