summaryrefslogtreecommitdiff
path: root/xmloff/source/text/XMLAutoTextEventExport.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-06-08 16:30:03 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-06-08 16:30:03 +0200
commit689a4a69733cd40c93b34dec83d7f7ca52abedb5 (patch)
treef69705ed2800958d6312f28c38c34b24fa227338 /xmloff/source/text/XMLAutoTextEventExport.cxx
parente7b4225fc8dbc8482150163b0e0c26f1fc3a7449 (diff)
loplugin:cstylecast: deal with remaining pointer casts
Change-Id: I6fa6ee6d9eaf98a00624ad353dc6d2c5687b0547
Diffstat (limited to 'xmloff/source/text/XMLAutoTextEventExport.cxx')
-rw-r--r--xmloff/source/text/XMLAutoTextEventExport.cxx4
1 files changed, 2 insertions, 2 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: */