diff options
| author | Marco Biscaro <marcobiscaro2112@gmail.com> | 2011-11-09 10:40:05 -0200 |
|---|---|---|
| committer | Marco Biscaro <marcobiscaro2112@gmail.com> | 2011-11-09 10:40:05 -0200 |
| commit | 3a45a9bff69c66dd9519654f7e28c92c7de15645 (patch) | |
| tree | db6ce1ae7489175c96b822a04b159b95978eeb5a /plugins | |
| parent | e2e81102ef5e39e3d57af654b83f2e705d4151b1 (diff) | |
Changed BOOST_FOREACH to for. Now the braces are in a new line.
(bzr r1733.3.3)
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/unityshell/src/DashView.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/plugins/unityshell/src/DashView.cpp b/plugins/unityshell/src/DashView.cpp index 6786ee22e..34cdada9a 100644 --- a/plugins/unityshell/src/DashView.cpp +++ b/plugins/unityshell/src/DashView.cpp @@ -28,7 +28,6 @@ #include <UnityCore/GLibWrapper.h> #include <UnityCore/RadioOptionFilter.h> #include <boost/algorithm/string.hpp> -#include <boost/foreach.hpp> #include "DashStyle.h" #include "DashSettings.h" @@ -557,7 +556,8 @@ std::string DashView::AnalyseLensURI(std::string uri) std::size_t pos = uri.find("?"); // it's a real URI (with parameters) - if (pos != std::string::npos) { + if (pos != std::string::npos) + { // id is the uri from begining to the '?' position id = uri.substr(0, pos); @@ -568,13 +568,15 @@ std::string DashView::AnalyseLensURI(std::string uri) std::vector<std::string> tokens; boost::split(tokens, components, boost::is_any_of("&")); - BOOST_FOREACH (std::string const& token, tokens) { + for (std::string const& token : tokens) + { // split each token in a pair std::vector<std::string> subs; boost::split(subs, token, boost::is_any_of("=")); // check if it's a filter - if (boost::starts_with(subs[0], "filter_")) { + if (boost::starts_with(subs[0], "filter_")) + { UpdateLensFilter(id, subs[0].substr(7), subs[1]); lens_views_[id]->filters_expanded = true; } |
