[Libreoffice-commits] core.git: include/o3tl
Tor Lillqvist
tml at collabora.com
Wed Apr 1 00:48:36 PDT 2015
include/o3tl/enumrange.hxx | 47 ++++++++++++++++++++++-----------------------
1 file changed, 23 insertions(+), 24 deletions(-)
New commits:
commit 05fa65d3c48be64e3aa2318c7e2afd9c99ac043c
Author: Tor Lillqvist <tml at collabora.com>
Date: Wed Apr 1 10:47:53 2015 +0300
Cosmetics
Change-Id: I65ee75db015a402c8d93f10f03512669d6fa8e79
diff --git a/include/o3tl/enumrange.hxx b/include/o3tl/enumrange.hxx
index 5363a94..395b870 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 */
More information about the Libreoffice-commits
mailing list