Skip to content
Snippets Groups Projects
Commit 46662a30 authored by Monty Brandenberg's avatar Monty Brandenberg
Browse files

Move dtors for refcounted objects to protected access.

parent 252c297b
No related branches found
No related tags found
No related merge requests found
......@@ -51,8 +51,10 @@ class HttpOpCancel : public HttpOperation
{
public:
HttpOpCancel(HttpHandle handle);
virtual ~HttpOpCancel();
protected:
virtual ~HttpOpCancel(); // Use release()
private:
HttpOpCancel(const HttpOpCancel &); // Not defined
void operator=(const HttpOpCancel &); // Not defined
......
......@@ -73,7 +73,9 @@ class HttpOperation : public LLCoreInt::RefCounted
{
public:
HttpOperation();
virtual ~HttpOperation();
protected:
virtual ~HttpOperation(); // Use release()
private:
HttpOperation(const HttpOperation &); // Not defined
......@@ -131,6 +133,8 @@ class HttpOpStop : public HttpOperation
{
public:
HttpOpStop();
protected:
virtual ~HttpOpStop();
private:
......@@ -152,6 +156,8 @@ class HttpOpNull : public HttpOperation
{
public:
HttpOpNull();
protected:
virtual ~HttpOpNull();
private:
......
......@@ -54,7 +54,9 @@ class HttpOpRequest : public HttpOperation
{
public:
HttpOpRequest();
virtual ~HttpOpRequest();
protected:
virtual ~HttpOpRequest(); // Use release()
private:
HttpOpRequest(const HttpOpRequest &); // Not defined
......
......@@ -49,7 +49,9 @@ class HttpOpSetGet : public HttpOperation
{
public:
HttpOpSetGet();
virtual ~HttpOpSetGet();
protected:
virtual ~HttpOpSetGet(); // Use release()
private:
HttpOpSetGet(const HttpOpSetGet &); // Not defined
......
......@@ -47,6 +47,8 @@ class HttpOpSetPriority : public HttpOperation
{
public:
HttpOpSetPriority(HttpHandle handle, HttpRequest::priority_t priority);
protected:
virtual ~HttpOpSetPriority();
private:
......
......@@ -63,7 +63,9 @@ class HttpReplyQueue : public LLCoreInt::RefCounted
public:
/// Caller acquires a Refcount on construction
HttpReplyQueue();
virtual ~HttpReplyQueue();
protected:
virtual ~HttpReplyQueue(); // Use release()
private:
HttpReplyQueue(const HttpReplyQueue &); // Not defined
......
......@@ -51,7 +51,9 @@ class HttpRequestQueue : public LLCoreInt::RefCounted
protected:
/// Caller acquires a Refcount on construction
HttpRequestQueue();
virtual ~HttpRequestQueue();
protected:
virtual ~HttpRequestQueue(); // Use release()
private:
HttpRequestQueue(const HttpRequestQueue &); // Not defined
......
......@@ -66,7 +66,9 @@ class BufferArray : public LLCoreInt::RefCounted
{
public:
BufferArray();
virtual ~BufferArray();
protected:
virtual ~BufferArray(); // Use release()
private:
BufferArray(const BufferArray &); // Not defined
......
......@@ -68,9 +68,10 @@ class HttpHeaders : public LLCoreInt::RefCounted
/// to the instance. A call to @see release() will destroy
/// the instance.
HttpHeaders();
~HttpHeaders();
protected:
virtual ~HttpHeaders(); // Use release()
HttpHeaders(const HttpHeaders &); // Not defined
void operator=(const HttpHeaders &); // Not defined
......
......@@ -61,9 +61,10 @@ class HttpOptions : public LLCoreInt::RefCounted
public:
HttpOptions();
HttpOptions(const HttpOptions &);
virtual ~HttpOptions();
protected:
virtual ~HttpOptions(); // Use release()
void operator=(const HttpOptions &); // Not defined
public:
......
......@@ -58,9 +58,10 @@ class HttpResponse : public LLCoreInt::RefCounted
{
public:
HttpResponse();
virtual ~HttpResponse();
protected:
virtual ~HttpResponse(); // Use release()
HttpResponse(const HttpResponse &); // Not defined
void operator=(const HttpResponse &); // Not defined
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment