X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/245dde96193702f7f51389d3583dee547f8ba366..af859f09084b4f6163501f216ba8cc2356fb3f93:/methods/http.cc?ds=sidebyside diff --git a/methods/http.cc b/methods/http.cc index ce697a338..78b20e66d 100644 --- a/methods/http.cc +++ b/methods/http.cc @@ -778,9 +778,9 @@ bool HttpMethod::Configuration(string Message) return true; } /*}}}*/ -ServerState * HttpMethod::CreateServerState(URI uri) /*{{{*/ +std::unique_ptr HttpMethod::CreateServerState(URI const &uri)/*{{{*/ { - return new HttpServerState(uri, this); + return std::unique_ptr(new HttpServerState(uri, this)); } /*}}}*/ void HttpMethod::RotateDNS() /*{{{*/