Skip to content

Commit f767295

Browse files
[clangd] Use std::make_unique (NFC) (#97915)
1 parent b151c7e commit f767295

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang-tools-extra/clangd/support/ThreadsafeFS.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class VolatileFileSystem : public llvm::vfs::ProxyFileSystem {
4141
llvm::StringRef FileName = llvm::sys::path::filename(Path);
4242
if (FileName.starts_with("preamble-") && FileName.ends_with(".pch"))
4343
return File;
44-
return std::unique_ptr<VolatileFile>(new VolatileFile(std::move(*File)));
44+
return std::make_unique<VolatileFile>(std::move(*File));
4545
}
4646

4747
private:

0 commit comments

Comments
 (0)