diff options
| author | Rider Linden <rider@lindenlab.com> | 2015-07-08 10:01:27 -0700 |
|---|---|---|
| committer | Rider Linden <rider@lindenlab.com> | 2015-07-08 10:01:27 -0700 |
| commit | 1138c57f9a8553903199e727912d7f1b092697e4 (patch) | |
| tree | 4414279316808fa7d778eb64540ba6dff07465e0 /indra/llcorehttp/httpheaders.h | |
| parent | 6689c92400a42bfc005f91b00c06601c508eac64 (diff) | |
Convert LLCore::HttpHeaders to use shared_ptr<> rather than an intrusive_ptr<> for refrence counting.
Diffstat (limited to 'indra/llcorehttp/httpheaders.h')
| -rwxr-xr-x | indra/llcorehttp/httpheaders.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/indra/llcorehttp/httpheaders.h b/indra/llcorehttp/httpheaders.h index 8f14568fa3..a97bae5537 100755 --- a/indra/llcorehttp/httpheaders.h +++ b/indra/llcorehttp/httpheaders.h @@ -74,7 +74,7 @@ namespace LLCore /// constructor is given a refcount. /// -class HttpHeaders : public LLCoreInt::RefCounted +class HttpHeaders: private boost::noncopyable { public: typedef std::pair<std::string, std::string> header_t; @@ -91,10 +91,11 @@ public: /// to the instance. A call to @see release() will destroy /// the instance. HttpHeaders(); + virtual ~HttpHeaders(); // Use release() - typedef LLCoreInt::IntrusivePtr<HttpHeaders> ptr_t; + //typedef LLCoreInt::IntrusivePtr<HttpHeaders> ptr_t; + typedef boost::shared_ptr<HttpHeaders> ptr_t; protected: - virtual ~HttpHeaders(); // Use release() HttpHeaders(const HttpHeaders &); // Not defined void operator=(const HttpHeaders &); // Not defined |
