diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-06-22 01:10:38 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-06-22 01:10:38 +0900 |
| commit | 07d270c87e6f9184aea4ca17eb26e466712e8db2 (patch) | |
| tree | 2dfbaa2e0d2ad0f38cb73098608f7d67a64320f8 /src/HttpHeaderProcessor.h | |
| parent | 126a4bde612eb0e6c48cf2f13ebe3eac45cc71a8 (diff) | |
Require -std=c++11 and use std::shared_ptr instead of SharedHandle
Diffstat (limited to 'src/HttpHeaderProcessor.h')
| -rw-r--r-- | src/HttpHeaderProcessor.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/HttpHeaderProcessor.h b/src/HttpHeaderProcessor.h index d8912f72..180eea05 100644 --- a/src/HttpHeaderProcessor.h +++ b/src/HttpHeaderProcessor.h @@ -39,8 +39,7 @@ #include <utility> #include <string> - -#include "SharedHandle.h" +#include <memory> namespace aria2 { @@ -74,7 +73,7 @@ public: * Processes the received header as a http response header and returns * HttpHeader object. */ - const SharedHandle<HttpHeader>& getResult() const; + const std::shared_ptr<HttpHeader>& getResult() const; std::string getHeaderString() const; @@ -89,7 +88,7 @@ private: std::string buf_; std::string lastFieldName_; int lastFieldHdKey_; - SharedHandle<HttpHeader> result_; + std::shared_ptr<HttpHeader> result_; std::string headers_; }; |
