GH #1050 Net: fix gcc -Wshadow warnings

This commit is contained in:
Miklos Vajna
2015-12-28 09:29:26 +01:00
parent d69878cdd5
commit 12d0699b5b
48 changed files with 573 additions and 573 deletions

View File

@@ -43,10 +43,10 @@ AbstractHTTPRequestHandler::~AbstractHTTPRequestHandler()
}
void AbstractHTTPRequestHandler::handleRequest(HTTPServerRequest& request, HTTPServerResponse& response)
void AbstractHTTPRequestHandler::handleRequest(HTTPServerRequest& rRequest, HTTPServerResponse& rResponse)
{
_pRequest = &request;
_pResponse = &response;
_pRequest = &rRequest;
_pResponse = &rResponse;
if (authenticate())
{
try
@@ -55,14 +55,14 @@ void AbstractHTTPRequestHandler::handleRequest(HTTPServerRequest& request, HTTPS
}
catch (Poco::Exception& exc)
{
if (!response.sent())
if (!rResponse.sent())
{
sendErrorResponse(HTTPResponse::HTTP_INTERNAL_SERVER_ERROR, exc.displayText());
}
}
catch (std::exception& exc)
{
if (!response.sent())
if (!rResponse.sent())
{
sendErrorResponse(HTTPResponse::HTTP_INTERNAL_SERVER_ERROR, exc.what());
}