Hey Andrii, 2009/4/16 <[email protected]>: > Comments for method: > > /*! \brief Remove the given <i>widget</i> from the layout. > * > * This method finds the corresponding WWidgetItem and calls > * removeItem(WLayoutItem *). The widget itself is not destroyed. > * > * \sa addWidget(WWidget *), removeItem(WLayoutItem *) > */ > void removeWidget(WWidget *widget); > > But implementation is different. > > void WLayout::removeWidget(WWidget *w) > { > WWidgetItem *widgetItem = findWidgetItem(w); > > if (widgetItem) { > widgetItem->parentLayout()->removeItem(widgetItem); > delete widgetItem; > } > }
Not really, WWidgetItem::~WWidgetItem() does not delete the widget itself. So the implementation and documentation are consistent. Are you observing problems ? Regards, koen ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ witty-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/witty-interest
