From a6ef114dcad1d985f3ede83598135c12c15feaeb Mon Sep 17 00:00:00 2001 From: Baptiste Wicht Date: Mon, 8 Aug 2016 22:39:02 +0200 Subject: [PATCH] Remove more tabs --- tlib/include/stat_info.hpp | 2 +- tlib/include/statfs_info.hpp | 4 +-- tstl/include/tuple.hpp | 48 ++++++++++++++++++------------------ 3 files changed, 27 insertions(+), 27 deletions(-) diff --git a/tlib/include/stat_info.hpp b/tlib/include/stat_info.hpp index 24985db8..0dc0c488 100644 --- a/tlib/include/stat_info.hpp +++ b/tlib/include/stat_info.hpp @@ -16,7 +16,7 @@ constexpr const size_t STAT_FLAG_HIDDEN = 0x2; constexpr const size_t STAT_FLAG_SYSTEM = 0x2; struct stat_info { - size_t flags; + size_t flags; size_t size; datetime created; datetime modified; diff --git a/tlib/include/statfs_info.hpp b/tlib/include/statfs_info.hpp index 5d1fa3a5..8c23ef04 100644 --- a/tlib/include/statfs_info.hpp +++ b/tlib/include/statfs_info.hpp @@ -11,8 +11,8 @@ #include struct statfs_info { - size_t total_size; - size_t free_size; + size_t total_size; + size_t free_size; }; #endif diff --git a/tstl/include/tuple.hpp b/tstl/include/tuple.hpp index 19a6d6a9..3b1492c7 100644 --- a/tstl/include/tuple.hpp +++ b/tstl/include/tuple.hpp @@ -22,22 +22,22 @@ struct head_base; template struct head_base : H { - head_base() : H(){} - head_base(const H& h) : H(h){} + head_base() : H(){} + head_base(const H& h) : H(h){} - static H& head(head_base& b){ return b; } - static const H& head(const head_base& b){ return b; } + static H& head(head_base& b){ return b; } + static const H& head(const head_base& b){ return b; } }; template struct head_base { - H head_impl; + H head_impl; - head_base() : head_impl(){} - head_base(const H& h) : head_impl(h){} + head_base() : head_impl(){} + head_base(const H& h) : head_impl(h){} - static H& head(head_base& b){ return b.head_impl; } - static const H& head(const head_base& b){ return b.head_impl; } + static H& head(head_base& b){ return b.head_impl; } + static const H& head(const head_base& b){ return b.head_impl; } }; /* Tuple implementation */ @@ -50,26 +50,26 @@ struct tuple_impl {}; template struct tuple_impl : public tuple_impl, private head_base { - typedef tuple_impl parent_t; - typedef head_base base_parent_t; + typedef tuple_impl parent_t; + typedef head_base base_parent_t; - tuple_impl() : parent_t(), base_parent_t() {} + tuple_impl() : parent_t(), base_parent_t() {} - explicit tuple_impl(const H& head, const E&... elements): parent_t(elements...), base_parent_t(head) {} + explicit tuple_impl(const H& head, const E&... elements): parent_t(elements...), base_parent_t(head) {} - static H& head(tuple_impl& t){ return base_parent_t::head(t); } - static const H& head(const tuple_impl& t){ return base_parent_t::head(t); } + static H& head(tuple_impl& t){ return base_parent_t::head(t); } + static const H& head(const tuple_impl& t){ return base_parent_t::head(t); } }; /* tuple class */ template struct tuple : tuple_impl<0, E...> { - typedef tuple_impl<0, E...> parent_t; + typedef tuple_impl<0, E...> parent_t; - tuple() : parent_t(){} + tuple() : parent_t(){} - explicit tuple(const E&... elements): parent_t(elements...) {} + explicit tuple(const E&... elements): parent_t(elements...) {} }; /* Helper to get the type of a tuple */ @@ -82,32 +82,32 @@ struct tuple_element> : tuple_element> { }; template struct tuple_element<0, tuple> { - typedef H type; + typedef H type; }; template inline H& get_helper(tuple_impl& t){ - return tuple_impl::head(t); + return tuple_impl::head(t); } template inline const H& get_helper(const tuple_impl& t) { - return tuple_impl::head(t); + return tuple_impl::head(t); } template inline typename tuple_element >::type& get(tuple& t){ - return get_helper(t); + return get_helper(t); } template inline const typename tuple_element >::type get(const tuple& t){ - return get_helper(t); + return get_helper(t); } template inline tuple make_tuple(E... args){ - return tuple(args...); + return tuple(args...); } } //end of namespace std