summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-15 09:06:40 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-15 09:06:40 +0100
commit016b8d71a222dad3637824c1e1625b2f22b2cc73 (patch)
treeafd6a8502ab39fc731490b9024e7cf6a3ad71b58 /include
parent2fa1c894ecabb3dbc2f2debd5ce73931c8da536c (diff)
More loplugin:cstylecast: cppu
Change-Id: I728a40ab6ef4aa44fbe328abdf244e6b5fac9d04
Diffstat (limited to 'include')
-rw-r--r--include/com/sun/star/uno/Any.h2
-rw-r--r--include/com/sun/star/uno/Type.h2
-rw-r--r--include/com/sun/star/uno/Type.hxx4
3 files changed, 4 insertions, 4 deletions
diff --git a/include/com/sun/star/uno/Any.h b/include/com/sun/star/uno/Any.h
index 2e216719b59e..4c52167a6b67 100644
--- a/include/com/sun/star/uno/Any.h
+++ b/include/com/sun/star/uno/Any.h
@@ -168,7 +168,7 @@ public:
@return the type class of the set value
*/
TypeClass SAL_CALL getValueTypeClass() const
- { return (TypeClass)pType->eTypeClass; }
+ { return static_cast<TypeClass>(pType->eTypeClass); }
/** Gets the type name of the set value.
diff --git a/include/com/sun/star/uno/Type.h b/include/com/sun/star/uno/Type.h
index 55b9c8317aef..5ca395e881fb 100644
--- a/include/com/sun/star/uno/Type.h
+++ b/include/com/sun/star/uno/Type.h
@@ -132,7 +132,7 @@ public:
@return type class of set type
*/
TypeClass SAL_CALL getTypeClass() const
- { return (TypeClass)_pType->eTypeClass; }
+ { return static_cast<TypeClass>(_pType->eTypeClass); }
/** Gets the name of the set type.
diff --git a/include/com/sun/star/uno/Type.hxx b/include/com/sun/star/uno/Type.hxx
index 171f52e113ee..770734f99df3 100644
--- a/include/com/sun/star/uno/Type.hxx
+++ b/include/com/sun/star/uno/Type.hxx
@@ -47,13 +47,13 @@ inline Type::Type()
inline Type::Type( TypeClass eTypeClass, const ::rtl::OUString & rTypeName )
: _pType( NULL )
{
- ::typelib_typedescriptionreference_new( &_pType, (typelib_TypeClass)eTypeClass, rTypeName.pData );
+ ::typelib_typedescriptionreference_new( &_pType, static_cast<typelib_TypeClass>(eTypeClass), rTypeName.pData );
}
inline Type::Type( TypeClass eTypeClass, const sal_Char * pTypeName )
: _pType( NULL )
{
- ::typelib_typedescriptionreference_newByAsciiName( &_pType, (typelib_TypeClass)eTypeClass, pTypeName );
+ ::typelib_typedescriptionreference_newByAsciiName( &_pType, static_cast<typelib_TypeClass>(eTypeClass), pTypeName );
}
inline Type::Type( typelib_TypeDescriptionReference * pType )