Even more fixes of implicit std::string conversions

This commit is contained in:
Mikael Holmén 2020-01-30 07:32:53 +01:00
parent eb054577e9
commit 635fbcdd1b
2 changed files with 2 additions and 2 deletions

View File

@ -97,7 +97,7 @@ public:
std::vector<std::pair<Path, bool>> Result;
std::lock_guard<std::mutex> Lock(Mutex);
for (const auto &It : LastDiagsHadError)
Result.emplace_back(It.first(), It.second);
Result.emplace_back(std::string(It.first()), It.second);
return Result;
}

View File

@ -59,7 +59,7 @@ void checkNodesAreInitialized(const IndexFileIn &IndexFile,
std::map<std::string, const IncludeGraphNode &> toMap(const IncludeGraph &IG) {
std::map<std::string, const IncludeGraphNode &> Nodes;
for (auto &I : IG)
Nodes.emplace(I.getKey(), I.getValue());
Nodes.emplace(std::string(I.getKey()), I.getValue());
return Nodes;
}