[Libreoffice-commits] core.git: include/o3tl
Tor Lillqvist
tml at collabora.com
Wed Apr 1 00:47:17 PDT 2015
include/o3tl/enumrange.hxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 6e530a23c8902d52aef44c7868b8a3d2bcf7f491
Author: Tor Lillqvist <tml at collabora.com>
Date: Wed Apr 1 10:44:57 2015 +0300
WaE: c-style cast
Change-Id: Ia3d8c23e8c3b3a2c7bbbcfc9922272b62ca2fc49
diff --git a/include/o3tl/enumrange.hxx b/include/o3tl/enumrange.hxx
index b127daf..5363a94 100644
--- a/include/o3tl/enumrange.hxx
+++ b/include/o3tl/enumrange.hxx
@@ -51,7 +51,7 @@ public:
T operator*( void ) const
{
- return (T)m_value;
+ return static_cast<T>(m_value);
}
void operator++( void )
@@ -79,7 +79,7 @@ typename enumrange<T>::Iterator begin( enumrange<T> )
template< typename T >
typename enumrange<T>::Iterator end( enumrange<T> )
{
- return typename enumrange<T>::Iterator( ((int)T::LAST) + 1 );
+ return typename enumrange<T>::Iterator( (static_cast<int>(T::LAST)) + 1 );
}
More information about the Libreoffice-commits
mailing list