Updated Easy::Filter. Only cosmetic changes.

This commit is contained in:
tastytea 2019-05-12 17:34:34 +02:00
parent ae7ffc2908
commit 69109ffc91
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 13 additions and 13 deletions

View File

@ -52,19 +52,19 @@ const vector<Easy::context_type> Filter::context() const
vector<Easy::context_type> vec;
std::transform(node.begin(), node.end(), std::back_inserter(vec),
[](const Json::Value &value)
{
const string strtype = value.asString();
if (strtype == "home")
return Easy::context_type::Home;
else if (strtype == "notifications")
return Easy::context_type::Notifications;
else if (strtype == "public")
return Easy::context_type::Public;
else if (strtype == "thread")
return Easy::context_type::Thread;
else
return context_type::Undefined;
});
{
const string strtype = value.asString();
if (strtype == "home")
return Easy::context_type::Home;
else if (strtype == "notifications")
return Easy::context_type::Notifications;
else if (strtype == "public")
return Easy::context_type::Public;
else if (strtype == "thread")
return Easy::context_type::Thread;
else
return context_type::Undefined;
});
return vec;
}