mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Migrate llvm::make_unique to std::make_unique
Now that we've moved to C++14, we no longer need the llvm::make_unique implementation from STLExtras.h. This patch is a mechanical replacement of (hopefully) all the llvm::make_unique instances in the swift repo.
This commit is contained in:
@@ -395,14 +395,14 @@ static StringRef copyString(llvm::BumpPtrAllocator &allocator, StringRef str) {
|
||||
}
|
||||
|
||||
static std::unique_ptr<Group> make_group(StringRef name) {
|
||||
auto g = llvm::make_unique<Group>();
|
||||
auto g = std::make_unique<Group>();
|
||||
g->name = name;
|
||||
g->description = name;
|
||||
return g;
|
||||
}
|
||||
|
||||
static std::unique_ptr<Result> make_result(Completion *result) {
|
||||
auto r = llvm::make_unique<Result>(result);
|
||||
auto r = std::make_unique<Result>(result);
|
||||
r->name = result->getName();
|
||||
r->description = result->getDescription();
|
||||
return r;
|
||||
|
||||
Reference in New Issue
Block a user