Re: [Kaffeine-devel] fix signal/slot in dvbclient after const"ifacation
Brought to you by:
hftom,
lasselindqvist
From: Laurent M. <mo...@kd...> - 2005-04-28 11:32:44
|
On Thursday 28 April 2005 13:28, Christophe Thommeret wrote: > Le Jeudi 28 Avril 2005 12:49, Laurent Montel a =E9crit=A0: > > hi, > > Little pb in signal/slot. > > Could you apply it please ? > > done. > > "if (dump) delete dump" is unchanged. I like to have it as a reminder that > dump could be 0. In C++ we can delete a null pointer. =3D> not necessary to test if it's null or not. =3D> we save some time=20 > For dvbconfig, it now looks like that : > > void DvbPanel::setConfig() > { > QString s =3D locateLocal("appdata", ""); > dvbConfig =3D new DVBconfig( s ); > > DvbPanel::~DvbPanel() > { > saveTimerList(); > delete dvbConfig; > > DVBconfig::DVBconfig( const QString &dvbConf ) > { > dvbConfigDir =3D dvbConf; > config =3D new KConfig( dvbConfigDir+"dvbrc" ); > downProgress =3D 0; > startup(); > readConfig(); > } > > > > DVBconfig::~DVBconfig() > { > saveConfig(); > delete config; > } Ok. > > Thanks > > Regards |