Updated Easy::Filter. Only cosmetic changes.
This commit is contained in:
parent
ae7ffc2908
commit
69109ffc91
|
@ -52,19 +52,19 @@ const vector<Easy::context_type> Filter::context() const
|
||||||
vector<Easy::context_type> vec;
|
vector<Easy::context_type> vec;
|
||||||
std::transform(node.begin(), node.end(), std::back_inserter(vec),
|
std::transform(node.begin(), node.end(), std::back_inserter(vec),
|
||||||
[](const Json::Value &value)
|
[](const Json::Value &value)
|
||||||
{
|
{
|
||||||
const string strtype = value.asString();
|
const string strtype = value.asString();
|
||||||
if (strtype == "home")
|
if (strtype == "home")
|
||||||
return Easy::context_type::Home;
|
return Easy::context_type::Home;
|
||||||
else if (strtype == "notifications")
|
else if (strtype == "notifications")
|
||||||
return Easy::context_type::Notifications;
|
return Easy::context_type::Notifications;
|
||||||
else if (strtype == "public")
|
else if (strtype == "public")
|
||||||
return Easy::context_type::Public;
|
return Easy::context_type::Public;
|
||||||
else if (strtype == "thread")
|
else if (strtype == "thread")
|
||||||
return Easy::context_type::Thread;
|
return Easy::context_type::Thread;
|
||||||
else
|
else
|
||||||
return context_type::Undefined;
|
return context_type::Undefined;
|
||||||
});
|
});
|
||||||
return vec;
|
return vec;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in New Issue