@@ -42,8 +42,8 @@ static const size_t MAX_HEADERS_SIZE = 8192;
42
42
class HTTPWorkItem : public HTTPClosure
43
43
{
44
44
public:
45
- HTTPWorkItem (std::unique_ptr<HTTPRequest> req , const std::string &path , const HTTPRequestHandler& func ):
46
- req (std::move(req )), path(path ), func(func )
45
+ HTTPWorkItem (std::unique_ptr<HTTPRequest> _req , const std::string &_path , const HTTPRequestHandler& _func ):
46
+ req (std::move(_req )), path(_path ), func(_func )
47
47
{
48
48
}
49
49
void operator ()()
@@ -92,8 +92,8 @@ class WorkQueue
92
92
};
93
93
94
94
public:
95
- WorkQueue (size_t maxDepth ) : running(true ),
96
- maxDepth (maxDepth ),
95
+ WorkQueue (size_t _maxDepth ) : running(true ),
96
+ maxDepth (_maxDepth ),
97
97
numThreads(0 )
98
98
{
99
99
}
@@ -158,8 +158,8 @@ class WorkQueue
158
158
struct HTTPPathHandler
159
159
{
160
160
HTTPPathHandler () {}
161
- HTTPPathHandler (std::string prefix , bool exactMatch , HTTPRequestHandler handler ):
162
- prefix (prefix ), exactMatch(exactMatch ), handler(handler )
161
+ HTTPPathHandler (std::string _prefix , bool _exactMatch , HTTPRequestHandler _handler ):
162
+ prefix (_prefix ), exactMatch(_exactMatch ), handler(_handler )
163
163
{
164
164
}
165
165
std::string prefix;
@@ -517,8 +517,8 @@ static void httpevent_callback_fn(evutil_socket_t, short, void* data)
517
517
delete self;
518
518
}
519
519
520
- HTTPEvent::HTTPEvent (struct event_base * base, bool deleteWhenTriggered , const std::function<void (void )>& handler ):
521
- deleteWhenTriggered(deleteWhenTriggered ), handler(handler )
520
+ HTTPEvent::HTTPEvent (struct event_base * base, bool _deleteWhenTriggered , const std::function<void (void )>& _handler ):
521
+ deleteWhenTriggered(_deleteWhenTriggered ), handler(_handler )
522
522
{
523
523
ev = event_new (base, -1 , 0 , httpevent_callback_fn, this );
524
524
assert (ev);
@@ -534,7 +534,7 @@ void HTTPEvent::trigger(struct timeval* tv)
534
534
else
535
535
evtimer_add (ev, tv); // trigger after timeval passed
536
536
}
537
- HTTPRequest::HTTPRequest (struct evhttp_request * req ) : req(req ),
537
+ HTTPRequest::HTTPRequest (struct evhttp_request * _req ) : req(_req ),
538
538
replySent(false )
539
539
{
540
540
}
0 commit comments