Skip to content

Commit bf20f90

Browse files
author
Sebastiano Merlino
committed
Solved some style problems signaled by cppcheck
1 parent 923bdf5 commit bf20f90

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/httpserver/http_resource.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ namespace httpserver
3737
class webserver;
3838
class http_request;
3939
class http_response;
40-
typedef void(*render_ptr)(const http_request&, http_response**);
4140

4241
/**
4342
* Class representing a callable http resource.

src/httpserver/http_response.hpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ class http_response
101101
keepalive_secs(keepalive_secs),
102102
keepalive_msg(keepalive_msg),
103103
send_topic(send_topic),
104+
underlying_connection(0x0),
104105
ca(0x0),
105106
closure_data(0x0),
106107
ce(ce),
@@ -131,6 +132,7 @@ class http_response
131132
keepalive_secs(b.keepalive_secs),
132133
keepalive_msg(b.keepalive_msg),
133134
send_topic(b.send_topic),
135+
underlying_connection(b.underlying_connection),
134136
ca(0x0),
135137
closure_data(0x0),
136138
ce(b.ce),
@@ -414,10 +416,7 @@ class http_response
414416
friend class cache_response;
415417
friend class deferred_response;
416418
private:
417-
http_response& operator=(const http_response& b)
418-
{
419-
return *this;
420-
}
419+
http_response& operator=(const http_response& b);
421420
};
422421

423422
class http_file_response;

src/httpserver/webserver.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,8 @@ namespace details
201201
supply_events_ptr supply_events;
202202
get_timeout_ptr get_timeout;
203203
dispatch_events_ptr dispatch_events;
204+
205+
event_tuple();
204206

205207
friend class ::httpserver::webserver;
206208
public:

0 commit comments

Comments
 (0)