From 7aa7f4d9e4294959748bccf9e763154740251635 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 4 Sep 2017 08:53:38 +0200 Subject: loplugin:unnecessaryparen include c++ casts Change-Id: I132d3c66f0562e2c37a02eaf4c168d06c2b473eb Reviewed-on: https://gerrit.libreoffice.org/41874 Tested-by: Jenkins Reviewed-by: Noel Grandin --- cppu/source/typelib/static_types.cxx | 2 +- cppu/source/typelib/typelib.cxx | 2 +- cppu/source/uno/assign.hxx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'cppu') diff --git a/cppu/source/typelib/static_types.cxx b/cppu/source/typelib/static_types.cxx index 1f95dfd93fad..45653b079c45 100644 --- a/cppu/source/typelib/static_types.cxx +++ b/cppu/source/typelib/static_types.cxx @@ -70,7 +70,7 @@ struct AlignSize_Impl #endif // the value of the maximal alignment -static sal_Int32 nMaxAlignment = (sal_Int32)( reinterpret_cast(&(reinterpret_cast(16))->dDouble) - 16); +static sal_Int32 nMaxAlignment = (sal_Int32)( reinterpret_cast(&reinterpret_cast(16)->dDouble) - 16); static inline sal_Int32 adjustAlignment( sal_Int32 nRequestedAlignment ) { diff --git a/cppu/source/typelib/typelib.cxx b/cppu/source/typelib/typelib.cxx index ac4e517aaac5..4ef5aaf18ac7 100644 --- a/cppu/source/typelib/typelib.cxx +++ b/cppu/source/typelib/typelib.cxx @@ -74,7 +74,7 @@ struct AlignSize_Impl #endif // the value of the maximal alignment -static sal_Int32 nMaxAlignment = (sal_Int32)( reinterpret_cast(&(reinterpret_cast(16))->dDouble) - 16); +static sal_Int32 nMaxAlignment = (sal_Int32)( reinterpret_cast(&reinterpret_cast(16)->dDouble) - 16); static inline sal_Int32 adjustAlignment( sal_Int32 nRequestedAlignment ) { diff --git a/cppu/source/uno/assign.hxx b/cppu/source/uno/assign.hxx index 59257c44b09a..8ee7010972d2 100644 --- a/cppu/source/uno/assign.hxx +++ b/cppu/source/uno/assign.hxx @@ -425,7 +425,7 @@ inline bool _assignData( typelib_TypeDescription * pTD = pSourceTypeDescr; while (pTD && !_type_equals( pTD->pWeakRef, pDestType )) { - pTD = &(reinterpret_cast(pTD))->pBaseTypeDescription->aBase; + pTD = &reinterpret_cast(pTD)->pBaseTypeDescription->aBase; } if (pTD) // is base of dest { -- cgit