From 69109ffc91e8fd462758c0e33377c860cfa9c508 Mon Sep 17 00:00:00 2001 From: tastytea Date: Sun, 12 May 2019 17:34:34 +0200 Subject: [PATCH] Updated Easy::Filter. Only cosmetic changes. --- src/easy/entities/filter.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/easy/entities/filter.cpp b/src/easy/entities/filter.cpp index f046597..fb50512 100644 --- a/src/easy/entities/filter.cpp +++ b/src/easy/entities/filter.cpp @@ -52,19 +52,19 @@ const vector Filter::context() const vector 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; }