diff options
author | Noel Grandin <noel@peralex.com> | 2014-10-20 11:52:06 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-10-20 13:33:58 +0200 |
commit | 3bb30a68e0604b3006f367fdb4c0a797846c23bc (patch) | |
tree | c5f5d11d9a0656c92ff7196984ca9238df2e89ee /svx/source/unodraw | |
parent | efa7f1a549ebf2580d50f6f0bb96e294a5fce670 (diff) |
loplugin: cstylecast
Change-Id: If50022b55a558c4124d71acbbe0ef5eb48801d0b
Diffstat (limited to 'svx/source/unodraw')
-rw-r--r-- | svx/source/unodraw/UnoNamespaceMap.cxx | 2 | ||||
-rw-r--r-- | svx/source/unodraw/unopool.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/svx/source/unodraw/UnoNamespaceMap.cxx b/svx/source/unodraw/UnoNamespaceMap.cxx index a0486428aeb2..a3b135350db5 100644 --- a/svx/source/unodraw/UnoNamespaceMap.cxx +++ b/svx/source/unodraw/UnoNamespaceMap.cxx @@ -170,7 +170,7 @@ bool NamespaceIteratorImpl::next( OUString& rPrefix, OUString& rURL ) mnItem++; // get that item and see if there namespaces inside - const SvXMLAttrContainerItem *pUnknown = (const SvXMLAttrContainerItem *)pItem; + const SvXMLAttrContainerItem *pUnknown = static_cast<const SvXMLAttrContainerItem *>(pItem); if( (pUnknown->GetAttrCount() > 0) ) { mpCurrentAttr = pUnknown; diff --git a/svx/source/unodraw/unopool.cxx b/svx/source/unodraw/unopool.cxx index 9afeabb6b69a..3fa5535e97ce 100644 --- a/svx/source/unodraw/unopool.cxx +++ b/svx/source/unodraw/unopool.cxx @@ -100,8 +100,8 @@ void SvxUnoDrawPool::getAny( SfxItemPool* pPool, const comphelper::PropertyMapEn { case OWN_ATTR_FILLBMP_MODE: { - XFillBmpStretchItem* pStretchItem = (XFillBmpStretchItem*)&pPool->GetDefaultItem(XATTR_FILLBMP_STRETCH); - XFillBmpTileItem* pTileItem = (XFillBmpTileItem*)&pPool->GetDefaultItem(XATTR_FILLBMP_TILE); + const XFillBmpStretchItem* pStretchItem = static_cast<const XFillBmpStretchItem*>(&pPool->GetDefaultItem(XATTR_FILLBMP_STRETCH)); + const XFillBmpTileItem* pTileItem = static_cast<const XFillBmpTileItem*>(&pPool->GetDefaultItem(XATTR_FILLBMP_TILE)); if( pTileItem && pTileItem->GetValue() ) { rValue <<= drawing::BitmapMode_REPEAT; |