> 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??
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. > On July 11, 2011, 6:27 p.m., Giorgos Tsiapaliwkas wrote: > > mainwindow.cpp, lines 136-144 > > <http://git.reviewboard.kde.org/r/101916/diff/1/?file=26724#file26724line136> > > > > Why the author did m_part=0; etc. > > good question; it may have been that at some point there was code in methods called later on in the dtor that conditionally used those elements. currently, however, those "= 0" lines are indeed not needed. - Aaron J. ----------------------------------------------------------- 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 > >
_______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel