Skip to content

Commit

Permalink
Even more fixes of implicit std::string conversions
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikael Holmén committed Jan 30, 2020
1 parent eb05457 commit 635fbcd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion clang-tools-extra/clangd/unittests/ClangdTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class MultipleErrorCheckingCallbacks : public ClangdServer::Callbacks {
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;
}

Expand Down
2 changes: 1 addition & 1 deletion clang-tools-extra/clangd/unittests/IndexActionTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 635fbcd

Please sign in to comment.