Skip to content

Commit 5e7eb07

Browse files
author
Sebastiano Merlino
committed
Solved warnings at compile time inherent virtual destructors
1 parent 24ae6ec commit 5e7eb07

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

src/httpserver/http_resource.hpp

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,6 @@ template<typename CHILD>
4848
class http_resource
4949
{
5050
public:
51-
/**
52-
* Class destructor
53-
**/
54-
~http_resource()
55-
{
56-
}
5751
/**
5852
* Method used to answer to a generic request
5953
* @param req Request passed through http
@@ -207,6 +201,13 @@ class http_resource
207201
return (*this);
208202
}
209203

204+
/**
205+
* Class destructor
206+
**/
207+
~http_resource()
208+
{
209+
}
210+
210211
private:
211212
friend class webserver;
212213
friend void resource_init(std::map<std::string, bool>& res);

src/httpserver/http_response.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ class http_response
209209
{
210210
}
211211

212-
~http_response();
212+
virtual ~http_response();
213213
/**
214214
* Method used to get the content from the response.
215215
* @return the content in string form

0 commit comments

Comments
 (0)