[Kde-pim] foreach and akonadi
Robert Zwerus
arzie at dds.nl
Mon Apr 28 14:14:34 BST 2008
Hi all,
On Sunday 27 April 2008, Tom Albers wrote:
> > Example:
> > foreach ( Part part, parts ) {
> > part.setData( QByteArray() );
> > if ( !part.update() )
> > qDebug() << "failed to update item part" << part.id();
> > }
> >
> > The problem here is that you are calling a "modifier" on "part" variable,
> > that "part" is a copy of the element pressent on "parts", so it is really
> > not modifying anything once you go out of the foreach (see my blog [1])
Oops, my bad! I just committed a fix (revision 802065).
--
A Dieu,
Robert Zwerus - WWW: http://zwering.adsl.utwente.nl
ICQ UIN: 3943443 - MSNM: robert_zwerus at hotmail.com
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/
More information about the kde-pim
mailing list