[poincare] Proper virtual destructor for ExpressionLayout

This commit is contained in:
Romain Goyet
2015-09-22 16:35:14 +02:00
parent 010777db09
commit 94adb97bd9
2 changed files with 7 additions and 7 deletions

View File

@@ -8,6 +8,8 @@ extern "C" {
class ExpressionLayout {
public:
ExpressionLayout(ExpressionLayout * parent);
virtual ~ExpressionLayout();
void draw(KDPoint point);
KDPoint origin();
KDSize size();

View File

@@ -5,13 +5,11 @@
ExpressionLayout::ExpressionLayout(ExpressionLayout * parent) :
m_parent(parent),
m_sized(false),
m_positioned(false) {
m_frame = (KDRect){
.x = 0,
.y = 0,
.width = 0,
.height = 0
};
m_positioned(false),
m_frame(KDRectZero) {
}
ExpressionLayout::~ExpressionLayout() {
}
KDPoint ExpressionLayout::origin() {