Review Request: Plasmate:add a destructor and some changes to the destructor of mainwindow.ccp

Giorgos Tsiapaliwkas terietor at gmail.com
Sat Jul 23 17:53:11 CEST 2011



> On July 11, 2011, 6:27 p.m., Giorgos Tsiapaliwkas wrote:
> > projectmanager/projectmanager.cpp, lines 73-79
> > <http://git.reviewboard.kde.org/r/101916/diff/1/?file=26726#file26726line73>
> >
> >     Why in general the destructors of plasmate doesn't do something like that??
> 
> Aaron J. Seigo wrote:
>     the more typical approach is to parent those items to something and let QObject handle it.
>     
>     e.g. this:
>     
>     m_loadButton = new KPushButton(i18n("Load Project"));
>     
>     should become this:
>     
>     m_loadButton = new KPushButton(i18n("Load Project"), this);
>     
>     there's no need for a dtor then.

so,i will replace evething that is necessary with the "this".
Is that ok??


- Giorgos


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/101916/#review4605
-----------------------------------------------------------


On July 11, 2011, 6:12 p.m., Giorgos Tsiapaliwkas wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/101916/
> -----------------------------------------------------------
> 
> (Updated July 11, 2011, 6:12 p.m.)
> 
> 
> Review request for Plasma.
> 
> 
> Summary
> -------
> 
> hello,
> 
> I was looking at the projectmanager.projectmanager.[h/cpp] and i noticed that there wasn't no destructor.
> The patch adds a destructor at projectmanager and changed a bit the mainwindow.cpp.
> 
> I have some question in my next reply
> 
> 
> Diffs
> -----
> 
>   mainwindow.cpp e08581f 
>   projectmanager/projectmanager.h 53ef226 
>   projectmanager/projectmanager.cpp 122e48d 
> 
> Diff: http://git.reviewboard.kde.org/r/101916/diff
> 
> 
> Testing
> -------
> 
> compiles fine and no pointer error
> 
> 
> Thanks,
> 
> Giorgos
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/plasma-devel/attachments/20110723/a7b5eb64/attachment.htm 


More information about the Plasma-devel mailing list