diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-06-08 16:25:25 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-06-08 16:25:25 +0200 |
commit | a1a5588b1b440836a6655ab0af5f854f3f5eb5ed (patch) | |
tree | bf96e680ee4b939a0a584d96140b2bf50e1776b6 /framework/source/xml/imagesdocumenthandler.cxx | |
parent | 648cf9a56dcb11d2674c48e77672cc124aad1bce (diff) |
loplugin:cstylecast: deal with remaining pointer casts
Change-Id: I4a72a60d621c65e63310ef70b991f9c86f00494d
Diffstat (limited to 'framework/source/xml/imagesdocumenthandler.cxx')
-rw-r--r-- | framework/source/xml/imagesdocumenthandler.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/framework/source/xml/imagesdocumenthandler.cxx b/framework/source/xml/imagesdocumenthandler.cxx index 8ecf8e4e24a6..aab2c4c64f37 100644 --- a/framework/source/xml/imagesdocumenthandler.cxx +++ b/framework/source/xml/imagesdocumenthandler.cxx @@ -601,7 +601,7 @@ OWriteImagesDocumentHandler::OWriteImagesDocumentHandler( m_xWriteDocumentHandler( rWriteDocumentHandler ) { ::comphelper::AttributeList* pList = new ::comphelper::AttributeList; - m_xEmptyList = Reference< XAttributeList >( (XAttributeList *) pList, UNO_QUERY ); + m_xEmptyList = Reference< XAttributeList >( static_cast<XAttributeList *>(pList), UNO_QUERY ); m_aAttributeType = ATTRIBUTE_TYPE_CDATA; m_aXMLImageNS = XMLNS_IMAGE_PREFIX; m_aXMLXlinkNS = XMLNS_XLINK_PREFIX; @@ -629,7 +629,7 @@ void OWriteImagesDocumentHandler::WriteImagesDocument() throw } ::comphelper::AttributeList* pList = new ::comphelper::AttributeList; - Reference< XAttributeList > xList( (XAttributeList *) pList , UNO_QUERY ); + Reference< XAttributeList > xList( static_cast<XAttributeList *>(pList) , UNO_QUERY ); pList->AddAttribute( OUString( ATTRIBUTE_XMLNS_IMAGE), m_aAttributeType, @@ -670,7 +670,7 @@ void OWriteImagesDocumentHandler::WriteImageList( const ImageListItemDescriptor* ( SAXException, RuntimeException ) { ::comphelper::AttributeList* pList = new ::comphelper::AttributeList; - Reference< XAttributeList > xList( (XAttributeList *) pList , UNO_QUERY ); + Reference< XAttributeList > xList( static_cast<XAttributeList *>(pList) , UNO_QUERY ); // save required attributes pList->AddAttribute( m_aAttributeXlinkType, @@ -740,7 +740,7 @@ void OWriteImagesDocumentHandler::WriteImage( const ImageItemDescriptor* pImage ( SAXException, RuntimeException ) { ::comphelper::AttributeList* pList = new ::comphelper::AttributeList; - Reference< XAttributeList > xList( (XAttributeList *) pList , UNO_QUERY ); + Reference< XAttributeList > xList( static_cast<XAttributeList *>(pList) , UNO_QUERY ); pList->AddAttribute( m_aXMLImageNS + ATTRIBUTE_BITMAPINDEX, m_aAttributeType, @@ -778,7 +778,7 @@ void OWriteImagesDocumentHandler::WriteExternalImage( const ExternalImageItemDes ( SAXException, RuntimeException ) { ::comphelper::AttributeList* pList = new ::comphelper::AttributeList; - Reference< XAttributeList > xList( (XAttributeList *) pList , UNO_QUERY ); + Reference< XAttributeList > xList( static_cast<XAttributeList *>(pList) , UNO_QUERY ); // save required attributes pList->AddAttribute( m_aAttributeXlinkType, |