forked from OSchip/llvm-project
Even more fixes of implicit std::string conversions
This commit is contained in:
parent
eb054577e9
commit
635fbcdd1b
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue