mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Adapt to llvm.org StringRef API change
This commit is contained in:
committed by
Michael Forster
parent
710799dd09
commit
259d78a350
@@ -398,15 +398,15 @@ static StringRef copyString(llvm::BumpPtrAllocator &allocator, StringRef str) {
|
||||
|
||||
static std::unique_ptr<Group> make_group(StringRef name) {
|
||||
auto g = std::make_unique<Group>();
|
||||
g->name = name;
|
||||
g->description = name;
|
||||
g->name = name.str();
|
||||
g->description = name.str();
|
||||
return g;
|
||||
}
|
||||
|
||||
static std::unique_ptr<Result> make_result(Completion *result) {
|
||||
auto r = std::make_unique<Result>(result);
|
||||
r->name = result->getName();
|
||||
r->description = result->getDescription();
|
||||
r->name = result->getName().str();
|
||||
r->description = result->getDescription().str();
|
||||
return r;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user