diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-04 08:53:38 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-04 10:52:41 +0200 |
commit | 7aa7f4d9e4294959748bccf9e763154740251635 (patch) | |
tree | 79fc3855ce0cc1141abdda514df374cd42ab259c /include | |
parent | 6f511a5de909b2fb6cb42b851e0cc90f54fbdd59 (diff) |
loplugin:unnecessaryparen include c++ casts
Change-Id: I132d3c66f0562e2c37a02eaf4c168d06c2b473eb
Reviewed-on: https://gerrit.libreoffice.org/41874
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/o3tl/enumrange.hxx | 2 | ||||
-rw-r--r-- | include/osl/file.hxx | 2 | ||||
-rw-r--r-- | include/sax/fastattribs.hxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/include/o3tl/enumrange.hxx b/include/o3tl/enumrange.hxx index 5d8c369d30dd..9293b6cc912c 100644 --- a/include/o3tl/enumrange.hxx +++ b/include/o3tl/enumrange.hxx @@ -77,7 +77,7 @@ typename enumrange<T>::Iterator begin( enumrange<T> ) 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 diff --git a/include/osl/file.hxx b/include/osl/file.hxx index a3edbc1fe81e..af2ac6a0ce95 100644 --- a/include/osl/file.hxx +++ b/include/osl/file.hxx @@ -1591,7 +1591,7 @@ public: // private use. extern "C" inline void SAL_CALL onDirectoryCreated(void* pData, rtl_uString* aDirectoryUrl) { - (static_cast<DirectoryCreationObserver*>(pData))->DirectoryCreated(aDirectoryUrl); + static_cast<DirectoryCreationObserver*>(pData)->DirectoryCreated(aDirectoryUrl); } /** The directory class object provides a enumeration of DirectoryItems. diff --git a/include/sax/fastattribs.hxx b/include/sax/fastattribs.hxx index 0a7d8712fb17..75dca6a83f7f 100644 --- a/include/sax/fastattribs.hxx +++ b/include/sax/fastattribs.hxx @@ -106,7 +106,7 @@ public: const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) { assert( dynamic_cast <FastAttributeList *> ( xAttrList.get() ) != nullptr ); - return ( static_cast <FastAttributeList *> ( xAttrList.get() ) ); + return static_cast <FastAttributeList *> ( xAttrList.get() ); } /// Use for fast iteration and conversion of attributes |