diff options
author | Noel Grandin <noel@peralex.com> | 2014-09-26 15:19:06 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-09-29 12:50:35 +0200 |
commit | 0ecf6afbd104b53836c7a4d45fbc2a6ce1e356e0 (patch) | |
tree | a1253c850347f9df39254fe9cf82b6ebf39d73f0 /svtools/source/svhtml | |
parent | c353caee1c86476d98cd483f963f63c4195975f4 (diff) |
loplugin: cstylecast
Change-Id: Iea517d2287bded4a702c73dfdd1f182023425d67
Diffstat (limited to 'svtools/source/svhtml')
-rw-r--r-- | svtools/source/svhtml/htmlout.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/svtools/source/svhtml/htmlout.cxx b/svtools/source/svhtml/htmlout.cxx index 003889d7f26b..4e239519da5c 100644 --- a/svtools/source/svhtml/htmlout.cxx +++ b/svtools/source/svhtml/htmlout.cxx @@ -46,7 +46,7 @@ HTMLOutContext::HTMLOutContext( rtl_TextEncoding eDestEnc ) DBG_ASSERT( m_hConv, "HTMLOutContext::HTMLOutContext: no converter for source encoding" ); m_hContext = m_hConv ? rtl_createUnicodeToTextContext( m_hConv ) - : (rtl_TextToUnicodeContext)1; + : reinterpret_cast<rtl_TextToUnicodeContext>(1); } HTMLOutContext::~HTMLOutContext() @@ -642,7 +642,7 @@ SvStream& HTMLOutFuncs::Out_ImageMap( SvStream& rStream, case( IMAP_OBJ_RECTANGLE ): { const IMapRectangleObject* pRectObj = - (const IMapRectangleObject *)pObj; + static_cast<const IMapRectangleObject *>(pObj); pShape = OOO_STRING_SVTOOLS_HTML_SH_rect; Rectangle aRect( pRectObj->GetRectangle() ); @@ -660,7 +660,7 @@ SvStream& HTMLOutFuncs::Out_ImageMap( SvStream& rStream, case( IMAP_OBJ_CIRCLE ): { const IMapCircleObject* pCirc = - (const IMapCircleObject *)pObj; + static_cast<const IMapCircleObject *>(pObj); pShape= OOO_STRING_SVTOOLS_HTML_SH_circ; Point aCenter( pCirc->GetCenter() ); long nOff = pCirc->GetRadius(); @@ -677,7 +677,7 @@ SvStream& HTMLOutFuncs::Out_ImageMap( SvStream& rStream, case( IMAP_OBJ_POLYGON ): { const IMapPolygonObject* pPolyObj = - (const IMapPolygonObject *)pObj; + static_cast<const IMapPolygonObject *>(pObj); pShape= OOO_STRING_SVTOOLS_HTML_SH_poly; Polygon aPoly( pPolyObj->GetPolygon() ); sal_uInt16 nCount = aPoly.GetSize(); |