File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ void checkNodesAreInitialized(const IndexFileIn &IndexFile,
5959std::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
You can’t perform that action at this time.
0 commit comments