diff options
author | Noel Grandin <noel@peralex.com> | 2014-11-24 10:39:39 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-11-25 10:09:51 +0200 |
commit | e9251f1f47cf3d1c6475f51a988ff5cee0f03159 (patch) | |
tree | 2ead039173551b7a23d4bd9a29fc05c136b6ea24 /sw/source/core/unocore/unodraw.cxx | |
parent | 0f29e157abf237055004c7b9bc1d171a78c0c27e (diff) |
loplugin: cstylecast
Change-Id: I9f9fef666ee22c54d923f24ce862151d32f4a5a7
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 b4e0b0bbb68f..aca3920b78aa 100644 --- a/sw/source/core/unocore/unodraw.cxx +++ b/sw/source/core/unocore/unodraw.cxx @@ -528,7 +528,7 @@ sal_Int32 SwXDrawPage::getCount(void) throw( uno::RuntimeException, std::excepti return 0; else { - ((SwXDrawPage*)this)->GetSvxPage(); + static_cast<SwXDrawPage*>(this)->GetSvxPage(); std::set<const SwFrmFmt*> aTextBoxes = SwTextBoxHelper::findTextBoxes(pDoc); @@ -555,7 +555,7 @@ uno::Any SwXDrawPage::getByIndex(sal_Int32 nIndex, std::set<const SwFrmFmt*>* pT if(!pDoc->getIDocumentDrawModelAccess().GetDrawModel()) throw lang::IndexOutOfBoundsException(); - ((SwXDrawPage*)this)->GetSvxPage(); + static_cast<SwXDrawPage*>(this)->GetSvxPage(); std::set<const SwFrmFmt*> aTextBoxes; if (!pTextBoxes) { @@ -582,7 +582,7 @@ sal_Bool SwXDrawPage::hasElements(void) throw( uno::RuntimeException, std::excep if(!pDoc->getIDocumentDrawModelAccess().GetDrawModel()) return sal_False; else - return ((SwXDrawPage*)this)->GetSvxPage()->hasElements(); + return static_cast<SwXDrawPage*>(this)->GetSvxPage()->hasElements(); } void SwXDrawPage::add(const uno::Reference< drawing::XShape > & xShape) @@ -1449,7 +1449,7 @@ void SwXShape::setPropertyValue(const OUString& rPropertyName, const uno::Any& a break; } if(pItem) - ((SfxPoolItem*)pItem)->PutValue(aValue, pEntry->nMemberId); + static_cast<SfxPoolItem*>(pItem)->PutValue(aValue, pEntry->nMemberId); } } else |