Kaydet (Commit) 97c8aaee authored tarafından Markus Mohrhard's avatar Markus Mohrhard

use boost::scoped_ptr instead of raw pointers

Change-Id: Ie09c66a414ec5a949bf8b0e5a32a3bd0d603bd06
üst 232f2513
......@@ -3002,12 +3002,6 @@ XclExpDxf::XclExpDxf( const XclExpRoot& rRoot, XclExpCellAlign* pAlign, XclExpCe
XclExpDxf::~XclExpDxf()
{
delete mpAlign;
delete mpBorder;
delete mpFont;
delete mpNumberFmt;
delete mpProt;
delete mpColor;
}
void XclExpDxf::SaveXml( XclExpXmlStream& rStrm )
......
......@@ -748,12 +748,12 @@ public:
virtual void SaveXml( XclExpXmlStream& rStrm );
private:
XclExpCellAlign* mpAlign;
XclExpCellBorder* mpBorder;
XclExpFont* mpFont;
XclExpNumFmt* mpNumberFmt;
XclExpCellProt* mpProt;
XclExpColor* mpColor;
boost::scoped_ptr<XclExpCellAlign> mpAlign;
boost::scoped_ptr<XclExpCellBorder> mpBorder;
boost::scoped_ptr<XclExpFont> mpFont;
boost::scoped_ptr<XclExpNumFmt> mpNumberFmt;
boost::scoped_ptr<XclExpCellProt> mpProt;
boost::scoped_ptr<XclExpColor> mpColor;
};
class XclExpDxfs : public XclExpRecordBase, protected XclExpRoot
......
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