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
{
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( )
{
delete m_pImplElement;
}
void OFormsRootExport::implExportBool(SvXMLExport& _rExp, OfficeFormsAttributes _eAttribute,
......
......@@ -22,6 +22,7 @@
#include "formattributes.hxx"
#include <xmloff/xmlictxt.hxx>
#include <memory>
#include "logging.hxx"
class SvXMLElementExport;
......@@ -61,7 +62,7 @@ namespace xmloff
class OFormsRootExport
{
private:
SvXMLElementExport* m_pImplElement;
std::unique_ptr<SvXMLElementExport> m_pImplElement;
public:
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