diff options
| author | Julian Andres Klode <jak@debian.org> | 2026-04-08 10:41:49 +0000 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2026-04-08 10:41:49 +0000 |
| commit | 65b3ff4a262e73a71467f1aab5bdf2e1a9e00170 (patch) | |
| tree | 1f40f2afce10e3b793540e9905b624f113c2ee15 /methods | |
| parent | fbde7ea4ce304a30e155a2bd9d014d196abbb496 (diff) | |
| parent | 23dba65f031954df896bc3c6dfb1a9705574886b (diff) | |
Merge branch 'make-unique' into 'main'
apt: modernize to make_unique C++17
See merge request apt-team/apt!567
Diffstat (limited to 'methods')
| -rw-r--r-- | methods/http.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/methods/http.cc b/methods/http.cc index 85350785e..09bca47dd 100644 --- a/methods/http.cc +++ b/methods/http.cc @@ -397,7 +397,7 @@ static ResultState UnwrapHTTPConnect(std::string Host, int Port, URI Proxy, std: if (In.WriteSpace()) { // Maybe there is actual data already read, if so we need to buffer it - std::unique_ptr<HttpConnectFd> NewFd(new HttpConnectFd()); + auto NewFd = std::make_unique<HttpConnectFd>(); In.Write(NewFd->Buffer); NewFd->UnderlyingFd = std::move(Fd); Fd = std::move(NewFd); |
