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

@@ -241,11 +241,11 @@ void HTTPRequest::getCredentials(const std::string& header, std::string& scheme,
{
const std::string& auth = get(header);
std::string::const_iterator it = auth.begin();
std::string::const_iterator end = auth.end();
while (it != end && Poco::Ascii::isSpace(*it)) ++it;
while (it != end && !Poco::Ascii::isSpace(*it)) scheme += *it++;
while (it != end && Poco::Ascii::isSpace(*it)) ++it;
while (it != end) authInfo += *it++;
std::string::const_iterator itEnd = auth.end();
while (it != itEnd && Poco::Ascii::isSpace(*it)) ++it;
while (it != itEnd && !Poco::Ascii::isSpace(*it)) scheme += *it++;
while (it != itEnd && Poco::Ascii::isSpace(*it)) ++it;
while (it != itEnd) authInfo += *it++;
}
else throw NotAuthenticatedException();
}