diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-03-31 13:16:43 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-03-31 13:16:43 +0200 |
commit | b3105952fbb04f51d8f1c310f0055219b94f2ee9 (patch) | |
tree | f5a8bc25e9f6c96814d754d14513387e10f573d7 /stoc/source/security/permissions.cxx | |
parent | c96f4e5684d3e7f145dcee5e3eeafd7491671d9b (diff) |
Reduce to static_cast any reinterpret_cast from void pointers
Change-Id: Ib3610f9d244b15f8f752c0f781600f5c7e7a944f
Diffstat (limited to 'stoc/source/security/permissions.cxx')
-rw-r--r-- | stoc/source/security/permissions.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/stoc/source/security/permissions.cxx b/stoc/source/security/permissions.cxx index 85f8e02c503e..d6f0f793ef9a 100644 --- a/stoc/source/security/permissions.cxx +++ b/stoc/source/security/permissions.cxx @@ -493,17 +493,17 @@ PermissionCollection::PermissionCollection( if (perm_type.equals( cppu::UnoType<io::FilePermission>::get())) { m_head = new FilePermission( - *reinterpret_cast< io::FilePermission const * >( perm.pData ), m_head ); + *static_cast< io::FilePermission const * >( perm.pData ), m_head ); } else if (perm_type.equals( cppu::UnoType<connection::SocketPermission>::get())) { m_head = new SocketPermission( - *reinterpret_cast< connection::SocketPermission const * >( perm.pData ), m_head ); + *static_cast< connection::SocketPermission const * >( perm.pData ), m_head ); } else if (perm_type.equals( cppu::UnoType<security::RuntimePermission>::get())) { m_head = new RuntimePermission( - *reinterpret_cast< security::RuntimePermission const * >( perm.pData ), m_head ); + *static_cast< security::RuntimePermission const * >( perm.pData ), m_head ); } else if (perm_type.equals( cppu::UnoType<security::AllPermission>::get())) { @@ -578,7 +578,7 @@ void PermissionCollection::checkPermission( Any const & perm ) const if (demanded_type.equals( cppu::UnoType<io::FilePermission>::get())) { FilePermission demanded( - *reinterpret_cast< io::FilePermission const * >( perm.pData ) ); + *static_cast< io::FilePermission const * >( perm.pData ) ); if (__implies( m_head, demanded )) { #ifdef __DIAGNOSE @@ -591,7 +591,7 @@ void PermissionCollection::checkPermission( Any const & perm ) const else if (demanded_type.equals( cppu::UnoType<connection::SocketPermission>::get())) { SocketPermission demanded( - *reinterpret_cast< connection::SocketPermission const * >( perm.pData ) ); + *static_cast< connection::SocketPermission const * >( perm.pData ) ); if (__implies( m_head, demanded )) { #ifdef __DIAGNOSE @@ -604,7 +604,7 @@ void PermissionCollection::checkPermission( Any const & perm ) const else if (demanded_type.equals( cppu::UnoType<security::RuntimePermission>::get())) { RuntimePermission demanded( - *reinterpret_cast< security::RuntimePermission const * >( perm.pData ) ); + *static_cast< security::RuntimePermission const * >( perm.pData ) ); if (__implies( m_head, demanded )) { #ifdef __DIAGNOSE |