diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-07-08 16:40:53 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-07-08 16:47:31 +0200 |
commit | e26dfe3a29eed9982cd8e6e3df4912a6210d09b0 (patch) | |
tree | 74da95689961343d37f149d8368d2091c74eadab /sw/source/core/unocore/unodraw.cxx | |
parent | 9af0403ddc024b843c214eb43923692fb1dfd9eb (diff) |
loplugin:redundantcast: redundant static_casts in sw
Change-Id: I09c1ebaf5742e983ee05942a4c7c17c6aa5179cc
Diffstat (limited to 'sw/source/core/unocore/unodraw.cxx')
-rw-r--r-- | sw/source/core/unocore/unodraw.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/core/unocore/unodraw.cxx b/sw/source/core/unocore/unodraw.cxx index 7a2896c6e0cb..d8d7ff42894b 100644 --- a/sw/source/core/unocore/unodraw.cxx +++ b/sw/source/core/unocore/unodraw.cxx @@ -526,7 +526,7 @@ sal_Int32 SwXDrawPage::getCount() throw( uno::RuntimeException, std::exception ) return 0; else { - static_cast<SwXDrawPage*>(this)->GetSvxPage(); + GetSvxPage(); std::set<const SwFrameFormat*> aTextBoxes = SwTextBoxHelper::findTextBoxes(pDoc); @@ -553,7 +553,7 @@ uno::Any SwXDrawPage::getByIndex(sal_Int32 nIndex, std::set<const SwFrameFormat* if(!pDoc->getIDocumentDrawModelAccess().GetDrawModel()) throw lang::IndexOutOfBoundsException(); - static_cast<SwXDrawPage*>(this)->GetSvxPage(); + GetSvxPage(); std::set<const SwFrameFormat*> aTextBoxes; if (!pTextBoxes) { @@ -580,7 +580,7 @@ sal_Bool SwXDrawPage::hasElements() throw( uno::RuntimeException, std::exception if(!pDoc->getIDocumentDrawModelAccess().GetDrawModel()) return false; else - return static_cast<SwXDrawPage*>(this)->GetSvxPage()->hasElements(); + return GetSvxPage()->hasElements(); } void SwXDrawPage::add(const uno::Reference< drawing::XShape > & xShape) @@ -1442,7 +1442,7 @@ void SwXShape::setPropertyValue(const OUString& rPropertyName, const uno::Any& a break; } if(pItem) - static_cast<SfxPoolItem*>(pItem)->PutValue(aValue, pEntry->nMemberId); + pItem->PutValue(aValue, pEntry->nMemberId); } } else |