diff options
| author | levlam <levlam@telegram.org> | 2019-06-17 19:12:54 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2019-06-17 19:12:54 +0300 |
| commit | a5413cf50dee90b604c9a665ab5b58f0d79d9844 (patch) | |
| tree | 57d0adb88957c0a85c52e5839ec507b99b1ea526 /tdnet/td/net/HttpInboundConnection.h | |
| parent | e3b9772cd25842e6ae692965e984945ad9255273 (diff) | |
Explicitly use unique_ptr<HttpQuery>.
GitOrigin-RevId: 1d729c6b0a3d1deaf3423672414f155492b7a0e8
Diffstat (limited to 'tdnet/td/net/HttpInboundConnection.h')
| -rw-r--r-- | tdnet/td/net/HttpInboundConnection.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tdnet/td/net/HttpInboundConnection.h b/tdnet/td/net/HttpInboundConnection.h index 070da2c0a..1c07f5869 100644 --- a/tdnet/td/net/HttpInboundConnection.h +++ b/tdnet/td/net/HttpInboundConnection.h @@ -20,7 +20,7 @@ class HttpInboundConnection final : public detail::HttpConnectionBase { public: class Callback : public Actor { public: - virtual void handle(HttpQueryPtr query, ActorOwn<HttpInboundConnection> connection) = 0; + virtual void handle(unique_ptr<HttpQuery> query, ActorOwn<HttpInboundConnection> connection) = 0; }; // Inherited interface // void write_next(BufferSlice buffer); @@ -31,7 +31,7 @@ class HttpInboundConnection final : public detail::HttpConnectionBase { ActorShared<Callback> callback); private: - void on_query(HttpQueryPtr query) override; + void on_query(unique_ptr<HttpQuery> query) override; void on_error(Status error) override; void hangup() override { callback_.release(); |
