diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-06-08 16:30:03 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-06-08 16:30:03 +0200 |
commit | 689a4a69733cd40c93b34dec83d7f7ca52abedb5 (patch) | |
tree | f69705ed2800958d6312f28c38c34b24fa227338 /xmloff/source/text | |
parent | e7b4225fc8dbc8482150163b0e0c26f1fc3a7449 (diff) |
loplugin:cstylecast: deal with remaining pointer casts
Change-Id: I6fa6ee6d9eaf98a00624ad353dc6d2c5687b0547
Diffstat (limited to 'xmloff/source/text')
-rw-r--r-- | xmloff/source/text/XMLAutoTextEventExport.cxx | 4 | ||||
-rw-r--r-- | xmloff/source/text/XMLAutoTextEventImport.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/text/XMLPropertyBackpatcher.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/text/txtimp.cxx | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/xmloff/source/text/XMLAutoTextEventExport.cxx b/xmloff/source/text/XMLAutoTextEventExport.cxx index d0c3ff8de74a..c560bb109449 100644 --- a/xmloff/source/text/XMLAutoTextEventExport.cxx +++ b/xmloff/source/text/XMLAutoTextEventExport.cxx @@ -226,7 +226,7 @@ Reference< XInterface > SAL_CALL XMLAutoTextEventExport_createInstance( const Reference< XMultiServiceFactory > & rSMgr) throw( Exception ) { - return (cppu::OWeakObject*)new XMLAutoTextEventExport( comphelper::getComponentContext(rSMgr), XMLAutoTextEventExport_getImplementationName(), SvXMLExportFlags::ALL|SvXMLExportFlags::OASIS); + return static_cast<cppu::OWeakObject*>(new XMLAutoTextEventExport( comphelper::getComponentContext(rSMgr), XMLAutoTextEventExport_getImplementationName(), SvXMLExportFlags::ALL|SvXMLExportFlags::OASIS)); } // methods to support the component registration @@ -248,7 +248,7 @@ Reference< XInterface > SAL_CALL XMLAutoTextEventExportOOO_createInstance( const Reference< XMultiServiceFactory > & rSMgr) throw( Exception ) { - return (cppu::OWeakObject*)new XMLAutoTextEventExport( comphelper::getComponentContext(rSMgr), XMLAutoTextEventExportOOO_getImplementationName(), SvXMLExportFlags::ALL); + return static_cast<cppu::OWeakObject*>(new XMLAutoTextEventExport( comphelper::getComponentContext(rSMgr), XMLAutoTextEventExportOOO_getImplementationName(), SvXMLExportFlags::ALL)); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/xmloff/source/text/XMLAutoTextEventImport.cxx b/xmloff/source/text/XMLAutoTextEventImport.cxx index 6b6b3fbfcbc8..340b03ae5ef7 100644 --- a/xmloff/source/text/XMLAutoTextEventImport.cxx +++ b/xmloff/source/text/XMLAutoTextEventImport.cxx @@ -122,7 +122,7 @@ Reference< XInterface > SAL_CALL XMLAutoTextEventImport_createInstance( const Reference< XMultiServiceFactory > & rSMgr) throw( Exception ) { - return (cppu::OWeakObject*)new XMLAutoTextEventImport( comphelper::getComponentContext(rSMgr) ); + return static_cast<cppu::OWeakObject*>(new XMLAutoTextEventImport( comphelper::getComponentContext(rSMgr) )); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/xmloff/source/text/XMLPropertyBackpatcher.cxx b/xmloff/source/text/XMLPropertyBackpatcher.cxx index 5844b0937e58..2e78d2d87a05 100644 --- a/xmloff/source/text/XMLPropertyBackpatcher.cxx +++ b/xmloff/source/text/XMLPropertyBackpatcher.cxx @@ -129,7 +129,7 @@ void XMLPropertyBackpatcher<A>::SetProperty( { // create backpatch list for this name BackpatchListType* pTmp = new BackpatchListType() ; - aBackpatchListMap[sName] = (void*)pTmp; + aBackpatchListMap[sName] = static_cast<void*>(pTmp); } // insert footnote diff --git a/xmloff/source/text/txtimp.cxx b/xmloff/source/text/txtimp.cxx index 3854cde826b5..89759dd10378 100644 --- a/xmloff/source/text/txtimp.cxx +++ b/xmloff/source/text/txtimp.cxx @@ -1590,7 +1590,7 @@ OUString XMLTextImportHelper::SetStyleAndAttrs( } } - GetTextListHelper().SetListItem( (XMLTextListItemContext *)0 ); + GetTextListHelper().SetListItem( nullptr ); } else { |