mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-25 18:22:59 +02:00
GH #1050 Net: fix gcc -Wshadow warnings
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user