X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/3b3028467ceccca0b73a8f53051c0fa4de313111..3685f84d8c0abfbddd12e034561e5f3fe8cbf2eb:/methods/https.h diff --git a/methods/https.h b/methods/https.h index 29b20b921..167107ad6 100644 --- a/methods/https.h +++ b/methods/https.h @@ -17,6 +17,7 @@ #include #include #include +#include #include "server.h" @@ -67,7 +68,7 @@ class HttpsMethod : public ServerMethod double ultotal, double ulnow); void SetupProxy(); CURL *curl; - ServerState *Server; + std::unique_ptr Server; // Used by ServerMethods unused by https virtual void SendReq(FetchItem *) APT_OVERRIDE { exit(42); } @@ -77,7 +78,7 @@ class HttpsMethod : public ServerMethod FileFd *File; virtual bool Configuration(std::string Message) APT_OVERRIDE; - virtual ServerState * CreateServerState(URI uri) APT_OVERRIDE; + virtual std::unique_ptr CreateServerState(URI const &uri) APT_OVERRIDE; using pkgAcqMethod::FetchResult; using pkgAcqMethod::FetchItem;