@@ -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;
@@ -522,8 +522,8 @@ static void httpevent_callback_fn(evutil_socket_t, short, void* data)
522
522
delete self;
523
523
}
524
524
525
- HTTPEvent::HTTPEvent (struct event_base * base, bool deleteWhenTriggered , const std::function<void (void )>& handler ):
526
- deleteWhenTriggered(deleteWhenTriggered ), handler(handler )
525
+ HTTPEvent::HTTPEvent (struct event_base * base, bool _deleteWhenTriggered , const std::function<void (void )>& _handler ):
526
+ deleteWhenTriggered(_deleteWhenTriggered ), handler(_handler )
527
527
{
528
528
ev = event_new (base, -1 , 0 , httpevent_callback_fn, this );
529
529
assert (ev);
@@ -539,7 +539,7 @@ void HTTPEvent::trigger(struct timeval* tv)
539
539
else
540
540
evtimer_add (ev, tv); // trigger after timeval passed
541
541
}
542
- HTTPRequest::HTTPRequest (struct evhttp_request * req ) : req(req ),
542
+ HTTPRequest::HTTPRequest (struct evhttp_request * _req ) : req(_req ),
543
543
replySent(false )
544
544
{
545
545
}
0 commit comments