CComponentsHeader/Icon: use inherited destructor

Inherited destructor contains identic code.
This commit is contained in:
2013-03-10 21:22:07 +01:00
parent de330ac39c
commit da356d94da
4 changed files with 17 additions and 19 deletions

View File

@@ -42,6 +42,13 @@ CComponentsWindow::CComponentsWindow()
initVarWindow();
}
CComponentsWindow::~CComponentsWindow()
{
if (ccw_head)
delete ccw_head;
cleanCCForm();
}
void CComponentsWindow::initVarWindow()
{
//CComponentsForm
@@ -61,12 +68,6 @@ void CComponentsWindow::initVarWindow()
setShadowOnOff(true);
}
CComponentsWindow::~CComponentsWindow()
{
if (ccw_head)
delete ccw_head;
}
void CComponentsWindow::setWindowCaption(neutrino_locale_t locale_text)
{
ccw_caption = g_Locale->getText(locale_text);