On 22 June 2001 16:54, David Faure wrote: > > This can happen if you are iterating over a temporary QList, for instance > QList objects() { return m_objects; } > [...] > QListIterator( thatClass->objects() ); > .... > > This creates an iterator over a temporary object -> bad. > The fix is obviously to change it into a reference: > const QList & objects() { return m_objects; } QList is defined at class and it used from different methods of that class. It contains for example all selected objects of page or all layers of page. -- RM (rm@linux.ru.net) _______________________________________________ Koffice-devel mailing list Koffice-devel@master.kde.org http://master.kde.org/mailman/listinfo/koffice-devel