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 /svx/source/accessibility | |
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 'svx/source/accessibility')
-rw-r--r-- | svx/source/accessibility/AccessibleEmptyEditSource.cxx | 4 | ||||
-rw-r--r-- | svx/source/accessibility/GraphCtlAccessibleContext.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/svx/source/accessibility/AccessibleEmptyEditSource.cxx b/svx/source/accessibility/AccessibleEmptyEditSource.cxx index 59643e33f8d9..6cbd41f35ce0 100644 --- a/svx/source/accessibility/AccessibleEmptyEditSource.cxx +++ b/svx/source/accessibility/AccessibleEmptyEditSource.cxx @@ -84,7 +84,7 @@ namespace accessibility SvxViewForwarder* GetViewForwarder() override { return this; } SvxEditSource* Clone() const override { return nullptr; } void UpdateData() override {} - SfxBroadcaster& GetBroadcaster() const override { return *(const_cast<AccessibleEmptyEditSource_Impl*>(this)); } + SfxBroadcaster& GetBroadcaster() const override { return *const_cast<AccessibleEmptyEditSource_Impl*>(this); } // SvxTextForwarder sal_Int32 GetParagraphCount() const override { return 1; } @@ -297,7 +297,7 @@ namespace accessibility SfxBroadcaster& AccessibleEmptyEditSource::GetBroadcaster() const { - return *(const_cast<AccessibleEmptyEditSource*>(this)); + return *const_cast<AccessibleEmptyEditSource*>(this); } void AccessibleEmptyEditSource::Notify( SfxBroadcaster& /*rBC*/, const SfxHint& rHint ) diff --git a/svx/source/accessibility/GraphCtlAccessibleContext.cxx b/svx/source/accessibility/GraphCtlAccessibleContext.cxx index 318733beae70..3020c2cbf4de 100644 --- a/svx/source/accessibility/GraphCtlAccessibleContext.cxx +++ b/svx/source/accessibility/GraphCtlAccessibleContext.cxx @@ -130,7 +130,7 @@ Reference< XAccessible > SAL_CALL SvxGraphCtrlAccessibleContext::getAccessible( else { // create a new one and remember in our internal map - Reference< XShape > xShape( Reference< XShape >::query( (const_cast<SdrObject*>(pObj))->getUnoShape() ) ); + Reference< XShape > xShape( Reference< XShape >::query( const_cast<SdrObject*>(pObj)->getUnoShape() ) ); AccessibleShapeInfo aShapeInfo (xShape,mxParent); // Create accessible object that corresponds to the descriptor's shape. |