X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/4fc6b7570c3e97b65c118b58cdf6729fa94c9b03..e7e10e47476606e3b2274cf66b1e8ea74b236757:/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() /*{{{*/