CComponentsHeader/Icon: use inherited destructor

Inherited destructor contains identic code.


Origin commit data
------------------
Branch: ni/coolstream
Commit: da356d94da
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-03-10 (Sun, 10 Mar 2013)



------------------
This commit was generated by Migit
This commit is contained in:
2013-03-10 21:22:07 +01:00
parent db094c3a10
commit bfda4b1d37
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);