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;
|
d_ptr->parent = parent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*!
|
||||||
|
* Destroys the Cell and cleans up.
|
||||||
|
*/
|
||||||
|
Cell::~Cell()
|
||||||
|
{
|
||||||
|
delete d_ptr;
|
||||||
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* Return the dataType of this Cell
|
* Return the dataType of this Cell
|
||||||
*/
|
*/
|
||||||
|
|||||||
+1
-1
@@ -57,12 +57,12 @@ public:
|
|||||||
bool isDateTime() const;
|
bool isDateTime() const;
|
||||||
QDateTime dateTime() const;
|
QDateTime dateTime() const;
|
||||||
|
|
||||||
|
~Cell();
|
||||||
private:
|
private:
|
||||||
friend class Worksheet;
|
friend class Worksheet;
|
||||||
friend class WorksheetPrivate;
|
friend class WorksheetPrivate;
|
||||||
|
|
||||||
Cell(const QVariant &data=QVariant(), DataType type=Blank, Format *format=0, Worksheet *parent=0);
|
Cell(const QVariant &data=QVariant(), DataType type=Blank, Format *format=0, Worksheet *parent=0);
|
||||||
|
|
||||||
CellPrivate * const d_ptr;
|
CellPrivate * const d_ptr;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user