diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-12 17:01:48 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-13 08:30:22 +0200 |
commit | 5cd976bdef4334a5c28d6c7748ef5d72cf5025ff (patch) | |
tree | 33b42d8365a7532155b3d1f35c4f4f12bbde191b /xmloff/source/forms | |
parent | 8c29b0837d924d226fd1a48e323771b450f2b9b6 (diff) |
loplugin:simplifyconstruct in writerfilter..xmlsecurity
Change-Id: Ic2d901ca0dbc2d6fa96611d260c1572da8a783c0
Reviewed-on: https://gerrit.libreoffice.org/60398
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/source/forms')
-rw-r--r-- | xmloff/source/forms/handler/form_handler_factory.cxx | 6 | ||||
-rw-r--r-- | xmloff/source/forms/officeforms.cxx | 1 |
2 files changed, 3 insertions, 4 deletions
diff --git a/xmloff/source/forms/handler/form_handler_factory.cxx b/xmloff/source/forms/handler/form_handler_factory.cxx index 438d76c52fea..8ea62c5fc4c7 100644 --- a/xmloff/source/forms/handler/form_handler_factory.cxx +++ b/xmloff/source/forms/handler/form_handler_factory.cxx @@ -28,14 +28,14 @@ namespace xmloff namespace { - static PPropertyHandler s_pVCLDateHandler = nullptr; - static PPropertyHandler s_pVCLTimeHandler = nullptr; + static PPropertyHandler s_pVCLDateHandler; + static PPropertyHandler s_pVCLTimeHandler; } //= FormHandlerFactory PPropertyHandler FormHandlerFactory::getFormPropertyHandler( const PropertyId i_propertyId ) { - PPropertyHandler pHandler( nullptr ); + PPropertyHandler pHandler; switch ( i_propertyId ) { diff --git a/xmloff/source/forms/officeforms.cxx b/xmloff/source/forms/officeforms.cxx index 57a1f23d0546..c3fd44b49b0a 100644 --- a/xmloff/source/forms/officeforms.cxx +++ b/xmloff/source/forms/officeforms.cxx @@ -117,7 +117,6 @@ namespace xmloff //= OFormsRootExport OFormsRootExport::OFormsRootExport( SvXMLExport& _rExp ) - :m_pImplElement(nullptr) { addModelAttributes(_rExp); |