diff options
author | Tor Lillqvist <tml@collabora.com> | 2015-04-01 10:47:53 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2015-04-01 10:48:02 +0300 |
commit | 05fa65d3c48be64e3aa2318c7e2afd9c99ac043c (patch) | |
tree | 0e0b3767b256966596bf93e6da4b60d31c81c188 | |
parent | 6e530a23c8902d52aef44c7868b8a3d2bcf7f491 (diff) |
Cosmetics
Change-Id: I65ee75db015a402c8d93f10f03512669d6fa8e79
-rw-r--r-- | include/o3tl/enumrange.hxx | 47 |
1 files changed, 23 insertions, 24 deletions
diff --git a/include/o3tl/enumrange.hxx b/include/o3tl/enumrange.hxx index 5363a94a937e..395b870db21a 100644 --- a/include/o3tl/enumrange.hxx +++ b/include/o3tl/enumrange.hxx @@ -42,47 +42,46 @@ template< typename T> class enumrange { public: - class Iterator - { - public: - Iterator( int value ) : - m_value( value ) - { } + class Iterator + { + public: + Iterator( int value ) : + m_value( value ) + { + } - T operator*( void ) const - { - return static_cast<T>(m_value); - } + T operator*( void ) const + { + return static_cast<T>(m_value); + } - void operator++( void ) - { - ++m_value; - } + void operator++( void ) + { + ++m_value; + } - bool operator!=( Iterator rhs ) - { - return m_value != rhs.m_value; - } + bool operator!=( Iterator rhs ) + { + return m_value != rhs.m_value; + } - private: - int m_value; + private: + int m_value; }; - }; template< typename T > typename enumrange<T>::Iterator begin( enumrange<T> ) { - return typename enumrange<T>::Iterator( (int)0 ); + return typename enumrange<T>::Iterator( (int)0 ); } template< typename T > typename enumrange<T>::Iterator end( enumrange<T> ) { - return typename enumrange<T>::Iterator( (static_cast<int>(T::LAST)) + 1 ); + return typename enumrange<T>::Iterator( (static_cast<int>(T::LAST)) + 1 ); } - }; // namespace o3tl #endif /* INCLUDED_O3TL_ENUMRANGE_HXX */ |