Skip to content

Commit 635fbcd

Browse files
author
Mikael Holmén
committed
Even more fixes of implicit std::string conversions
1 parent eb05457 commit 635fbcd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clang-tools-extra/clangd/unittests/ClangdTests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ class MultipleErrorCheckingCallbacks : public ClangdServer::Callbacks {
9797
std::vector<std::pair<Path, bool>> Result;
9898
std::lock_guard<std::mutex> Lock(Mutex);
9999
for (const auto &It : LastDiagsHadError)
100-
Result.emplace_back(It.first(), It.second);
100+
Result.emplace_back(std::string(It.first()), It.second);
101101
return Result;
102102
}
103103

clang-tools-extra/clangd/unittests/IndexActionTests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ void checkNodesAreInitialized(const IndexFileIn &IndexFile,
5959
std::map<std::string, const IncludeGraphNode &> toMap(const IncludeGraph &IG) {
6060
std::map<std::string, const IncludeGraphNode &> Nodes;
6161
for (auto &I : IG)
62-
Nodes.emplace(I.getKey(), I.getValue());
62+
Nodes.emplace(std::string(I.getKey()), I.getValue());
6363
return Nodes;
6464
}
6565

0 commit comments

Comments
 (0)