summaryrefslogtreecommitdiff
path: root/include/o3tl
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-02-11 13:20:49 +0200
committerNoel Grandin <noel@peralex.com>2015-02-23 09:26:58 +0200
commitba233e87efddf0a6751b35784dca1c805364ff3b (patch)
tree9d7c8a4256e688c2d47cb6ecf580ac196c4da2c0 /include/o3tl
parenta2fa9e2468aa5c4fd4b610c5d0ebc8959e87a072 (diff)
remove unnecessary parenthesis in return statements
found with $ git grep -lP 'return\s*\(\s*\w+\s*\)\s*;' Change-Id: Ic51606877a9edcadeb647c5bf17bc928b69ab60e
Diffstat (limited to 'include/o3tl')
-rw-r--r--include/o3tl/compat_functional.hxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/o3tl/compat_functional.hxx b/include/o3tl/compat_functional.hxx
index 6dff02bc7b74..6d04e6744ca3 100644
--- a/include/o3tl/compat_functional.hxx
+++ b/include/o3tl/compat_functional.hxx
@@ -43,7 +43,7 @@ struct project1st : public std::binary_function<T1, T2, T1>
{
T1 operator()(const T1& y, const T2&) const
{
- return (y);
+ return y;
}
};
@@ -53,7 +53,7 @@ struct project2nd : public std::binary_function<T1, T2, T2>
{
T2 operator()(const T1&, const T2& x) const
{
- return (x);
+ return x;
}
};
@@ -63,7 +63,7 @@ struct select1st : public std::unary_function<P, typename P::first_type>
{
const typename P::first_type& operator()(const P& y) const
{
- return (y.first);
+ return y.first;
}
};
@@ -73,7 +73,7 @@ struct select2nd : public std::unary_function<P, typename P::second_type>
{
const typename P::second_type& operator()(const P& y) const
{
- return (y.second);
+ return y.second;
}
};
@@ -86,7 +86,7 @@ class unary_compose : public std::unary_function<typename F2::argument_type, typ
typename F1::result_type operator()(const typename F2::argument_type& y) const
{
- return (ftor1(ftor2(y)));
+ return ftor1(ftor2(y));
}
protected:
@@ -98,7 +98,7 @@ class unary_compose : public std::unary_function<typename F2::argument_type, typ
template<class F1, class F2>
inline unary_compose<F1, F2> compose1(const F1& fnction1, const F2& fnction2)
{
- return (unary_compose<F1, F2>(fnction1, fnction2));
+ return unary_compose<F1, F2>(fnction1, fnction2);
}
} // namespace o3tl