mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Fix shadowing variables
This commit is contained in:
@@ -247,9 +247,9 @@ build_map(boost::beast::http::fields const& h)
|
||||
auto key (e.name_string().to_string());
|
||||
// TODO Replace with safe C++14 version
|
||||
std::transform (key.begin(), key.end(), key.begin(),
|
||||
[](auto c)
|
||||
[](auto kc)
|
||||
{
|
||||
return ::tolower(static_cast<unsigned char>(c));
|
||||
return ::tolower(static_cast<unsigned char>(kc));
|
||||
});
|
||||
c [key] = e.value().to_string();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user