Browse Source

Merge topic 'fix-xcode6-compilation'

1ff1f75718 Fix Xcode 6.1.1 compilation issue

Acked-by: Kitware Robot <[email protected]>
Merge-request: !3480
Brad King 6 years ago
parent
commit
2919f65c24
1 changed files with 1 additions and 4 deletions
  1. 1 4
      Source/cmRuntimeDependencyArchive.cxx

+ 1 - 4
Source/cmRuntimeDependencyArchive.cxx

@@ -342,10 +342,7 @@ void cmRuntimeDependencyArchive::AddResolvedPath(const std::string& name,
                                                  const std::string& path,
                                                  const std::string& path,
                                                  bool& unique)
                                                  bool& unique)
 {
 {
-  auto it =
-    this->ResolvedPaths
-      .insert(std::pair<std::string, std::set<std::string>>{ name, {} })
-      .first;
+  auto it = this->ResolvedPaths.emplace(name, std::set<std::string>{}).first;
   unique = true;
   unique = true;
   for (auto const& other : it->second) {
   for (auto const& other : it->second) {
     if (cmSystemTools::SameFile(path, other)) {
     if (cmSystemTools::SameFile(path, other)) {