Fix memery leak of QXlsx::Cell
This commit is contained in:
@@ -58,6 +58,14 @@ Cell::Cell(const QVariant &data, DataType type, Format *format, Worksheet *paren
|
||||
d_ptr->parent = parent;
|
||||
}
|
||||
|
||||
/*!
|
||||
* Destroys the Cell and cleans up.
|
||||
*/
|
||||
Cell::~Cell()
|
||||
{
|
||||
delete d_ptr;
|
||||
}
|
||||
|
||||
/*!
|
||||
* Return the dataType of this Cell
|
||||
*/
|
||||
|
||||
+1
-1
@@ -57,12 +57,12 @@ public:
|
||||
bool isDateTime() const;
|
||||
QDateTime dateTime() const;
|
||||
|
||||
~Cell();
|
||||
private:
|
||||
friend class Worksheet;
|
||||
friend class WorksheetPrivate;
|
||||
|
||||
Cell(const QVariant &data=QVariant(), DataType type=Blank, Format *format=0, Worksheet *parent=0);
|
||||
|
||||
CellPrivate * const d_ptr;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user