Fixes for CControl derived classes

CControl has a virtual destructor and constructor without
side effects, so problem of double calls can be fixed
(unlike issue #8)
dev-ui
Piotr Dziwinski 2012-03-23 21:19:34 +01:00
parent 57a51c7a29
commit 39f32f2a14
8 changed files with 4 additions and 11 deletions

View File

@ -42,8 +42,6 @@
CButton::CButton(CInstanceManager* iMan) : CControl(iMan)
{
CControl::CControl(iMan);
m_bCapture = FALSE;
m_bImmediat = FALSE;
m_bRepeat = FALSE;

View File

@ -31,7 +31,7 @@ class CButton : public CControl
{
public:
CButton(CInstanceManager* iMan);
~CButton();
virtual ~CButton();
BOOL Create(FPOINT pos, FPOINT dim, int icon, EventMsg eventMsg);

View File

@ -38,7 +38,6 @@
CCheck::CCheck(CInstanceManager* iMan) : CControl(iMan)
{
CControl::CControl(iMan);
}
// Object's destructor.

View File

@ -31,7 +31,7 @@ class CCheck : public CControl
{
public:
CCheck(CInstanceManager* iMan);
~CCheck();
virtual ~CCheck();
BOOL Create(FPOINT pos, FPOINT dim, int icon, EventMsg eventMsg);

View File

@ -42,8 +42,6 @@
CColor::CColor(CInstanceManager* iMan) : CControl(iMan)
{
CControl::CControl(iMan);
m_bRepeat = FALSE;
m_repeat = 0.0f;

View File

@ -32,7 +32,7 @@ class CColor : public CControl
{
public:
CColor(CInstanceManager* iMan);
~CColor();
virtual ~CColor();
BOOL Create(FPOINT pos, FPOINT dim, int icon, EventMsg eventMsg);

View File

@ -36,8 +36,6 @@
CCompass::CCompass(CInstanceManager* iMan) : CControl(iMan)
{
CControl::CControl(iMan);
m_dir = 0.0f;
}

View File

@ -31,7 +31,7 @@ class CCompass : public CControl
{
public:
CCompass(CInstanceManager* iMan);
~CCompass();
virtual ~CCompass();
BOOL Create(FPOINT pos, FPOINT dim, int icon, EventMsg eventMsg);