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