Commit 3810a145 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Utils: Fix indention



Change-Id: Idc7ec5d102b0e3c838700ee7d89db7aea3399728
Reviewed-by: default avatarEike Ziller <eike.ziller@theqtcompany.com>
parent 6e0e988f
...@@ -343,20 +343,20 @@ template<typename C, typename F> ...@@ -343,20 +343,20 @@ template<typename C, typename F>
Q_REQUIRED_RESULT Q_REQUIRED_RESULT
C filtered(const C &container, F predicate) C filtered(const C &container, F predicate)
{ {
C out; C out;
std::copy_if(container.begin(), container.end(), std::copy_if(container.begin(), container.end(),
inserter(out), predicate); inserter(out), predicate);
return out; return out;
} }
template<typename C, typename R, typename S> template<typename C, typename R, typename S>
Q_REQUIRED_RESULT Q_REQUIRED_RESULT
C filtered(const C &container, R (S::*predicate)() const) C filtered(const C &container, R (S::*predicate)() const)
{ {
C out; C out;
std::copy_if(container.begin(), container.end(), std::copy_if(container.begin(), container.end(),
inserter(out), std::mem_fn(predicate)); inserter(out), std::mem_fn(predicate));
return out; return out;
} }
////////////////// //////////////////
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment