mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Qualify tolower with std:: and remove obsolete comments
* Fixes RIPD-1759
This commit is contained in:
committed by
Manoj doshi
parent
2831ed0538
commit
79896af275
@@ -237,7 +237,6 @@ Json::Output makeOutput (Session& session)
|
||||
};
|
||||
}
|
||||
|
||||
// HACK!
|
||||
static
|
||||
std::map<std::string, std::string>
|
||||
build_map(boost::beast::http::fields const& h)
|
||||
@@ -246,11 +245,10 @@ build_map(boost::beast::http::fields const& h)
|
||||
for (auto const& e : h)
|
||||
{
|
||||
auto key (e.name_string().to_string());
|
||||
// TODO Replace with safe C++14 version
|
||||
std::transform (key.begin(), key.end(), key.begin(),
|
||||
[](auto kc)
|
||||
{
|
||||
return ::tolower(static_cast<unsigned char>(kc));
|
||||
return std::tolower(static_cast<unsigned char>(kc));
|
||||
});
|
||||
c [key] = e.value().to_string();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user