From ffcf753acb11c8d8454e1fc24ba7cb9aff129b2b Mon Sep 17 00:00:00 2001 From: Zdenek Jonak Date: Wed, 9 Mar 2016 20:27:05 +0100 Subject: [PATCH] fixed compile problem with gcc and inicialization in comodity plugin --- commodity/data/commoditydata.cpp | 2 ++ core/autoform.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/commodity/data/commoditydata.cpp b/commodity/data/commoditydata.cpp index fe2b6ff..09ce104 100644 --- a/commodity/data/commoditydata.cpp +++ b/commodity/data/commoditydata.cpp @@ -4,6 +4,8 @@ CommodityData::CommodityData(QObject *parent) :QObject(parent) { + m_count = 0; + m_price = 0; } int CommodityData::id() const { diff --git a/core/autoform.h b/core/autoform.h index 7de9d38..02e944b 100644 --- a/core/autoform.h +++ b/core/autoform.h @@ -17,7 +17,7 @@ class AutoForm : public FormBinder { public: explicit AutoForm(QWidget *parent = 0) { - setParent(parent); + this->setParent(parent); m_serviceConnected = false; m_saved = false; }