Fixed some capture clauses.

This commit is contained in:
tastytea 2019-03-30 23:49:08 +01:00
parent f5b05893cd
commit c7f7123ba6
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
3 changed files with 4 additions and 4 deletions

View File

@ -78,7 +78,7 @@ const std::vector<string> Easy::json_array_to_vector(const string &json)
std::vector<string> vec(json_array.size());
std::transform(json_array.begin(), json_array.end(), vec.begin(),
[](const Json::Value &j)
{ return j.toStyledString(); });
{ return j.toStyledString(); });
return vec;
}

View File

@ -96,7 +96,7 @@ const std::vector<Account::fields_pair> Account::fields() const
{
std::vector<Account::fields_pair> vec;
std::transform(node.begin(), node.end(), std::back_inserter(vec),
[=](const Json::Value &value)
[](const Json::Value &value)
{
return Account::fields_pair
(value["name"].asString(),
@ -239,7 +239,7 @@ const std::vector<Account::fields_pair> Account::Source::fields() const
{
std::vector<Account::fields_pair> vec;
std::transform(node.begin(), node.end(), std::back_inserter(vec),
[=](const Json::Value &value)
[](const Json::Value &value)
{
return Account::fields_pair
(value["name"].asString(),

View File

@ -239,7 +239,7 @@ const std::vector<string> Easy::Entity::get_vector(const string &key) const
{
std::vector<string> vec;
std::transform(node.begin(), node.end(), std::back_inserter(vec),
[=](const Json::Value &value)
[](const Json::Value &value)
{ return value.asString(); });
_was_set = true;
return vec;