Kaydet (Commit) 89d3482b authored tarafından Arnold Dumas's avatar Arnold Dumas Kaydeden (comit) Noel Grandin

tdf#89329: use unique_ptr for pImpl in officeforms

Change-Id: Icdf742cbdbecab11be6a3fdd4387ade1c8fd7c15
Reviewed-on: https://gerrit.libreoffice.org/28368Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
üst f360244e
...@@ -121,12 +121,11 @@ namespace xmloff ...@@ -121,12 +121,11 @@ namespace xmloff
{ {
addModelAttributes(_rExp); addModelAttributes(_rExp);
m_pImplElement = new SvXMLElementExport(_rExp, XML_NAMESPACE_OFFICE, XML_FORMS, true, true); m_pImplElement.reset( new SvXMLElementExport(_rExp, XML_NAMESPACE_OFFICE, XML_FORMS, true, true) );
} }
OFormsRootExport::~OFormsRootExport( ) OFormsRootExport::~OFormsRootExport( )
{ {
delete m_pImplElement;
} }
void OFormsRootExport::implExportBool(SvXMLExport& _rExp, OfficeFormsAttributes _eAttribute, void OFormsRootExport::implExportBool(SvXMLExport& _rExp, OfficeFormsAttributes _eAttribute,
......
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
#include "formattributes.hxx" #include "formattributes.hxx"
#include <xmloff/xmlictxt.hxx> #include <xmloff/xmlictxt.hxx>
#include <memory>
#include "logging.hxx" #include "logging.hxx"
class SvXMLElementExport; class SvXMLElementExport;
...@@ -61,7 +62,7 @@ namespace xmloff ...@@ -61,7 +62,7 @@ namespace xmloff
class OFormsRootExport class OFormsRootExport
{ {
private: private:
SvXMLElementExport* m_pImplElement; std::unique_ptr<SvXMLElementExport> m_pImplElement;
public: public:
explicit OFormsRootExport( SvXMLExport& _rExp ); explicit OFormsRootExport( SvXMLExport& _rExp );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment