diff options
Diffstat (limited to 'Source/cmComputeLinkDepends.cxx')
-rw-r--r-- | Source/cmComputeLinkDepends.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Source/cmComputeLinkDepends.cxx b/Source/cmComputeLinkDepends.cxx index d9efc2e..354de36 100644 --- a/Source/cmComputeLinkDepends.cxx +++ b/Source/cmComputeLinkDepends.cxx @@ -285,9 +285,9 @@ std::map<std::string, int>::iterator cmComputeLinkDepends::AllocateLinkEntry( item, static_cast<int>(this->EntryList.size())); std::map<std::string, int>::iterator lei = this->LinkEntryIndex.insert(index_entry).first; - this->EntryList.push_back(LinkEntry()); + this->EntryList.emplace_back(); this->InferredDependSets.push_back(nullptr); - this->EntryConstraintGraph.push_back(EdgeList()); + this->EntryConstraintGraph.emplace_back(); return lei; } @@ -472,8 +472,7 @@ void cmComputeLinkDepends::AddVarLinkEntries(int depender_index, // If the library is meant for this link type then use it. if (llt == GENERAL_LibraryType || llt == this->LinkType) { - cmLinkItem item(d, this->FindTargetToLink(depender_index, d)); - actual_libs.push_back(item); + actual_libs.emplace_back(d, this->FindTargetToLink(depender_index, d)); } else if (this->OldLinkDirMode) { cmLinkItem item(d, this->FindTargetToLink(depender_index, d)); this->CheckWrongConfigItem(item); |