-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Am Dienstag, 29. Oktober 2002 20:38 schrieb Matias Aguirre:
> in which I am mistaken?
llay->addLayout(blay);
+ delete blay;
Your patch deletes the Layout after adding it! I think you must not to do
this, because the pointer that blay points to might still be referenced to by
llay:
void QLayout::addItem ( QLayoutItem * item ) [pure virtual]
Implemented in subclasses to add an item. How it is added is specific to each
subclass.
The ownership of item is transferred to the layout, and it's the layout's
responsibility to delete it.
As you can see, deletion is being taken care of by the layout manager.
Cheers,
Arne
- --
wir aber, die jetzt die gefahr kennen, und solcher gegenw�rtig sind,
k�nnen uns jetzt nicht entschliessen...
[--- PGP key FD05BED7 --- http://www.root42.de/ ---]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE9vvW3zpP3gv0FvtcRArPcAJ40LUkJpI7jTw3VYaS8asSu72eaygCghzE8
lrXDMkj1XBRs3MHCfaX69FI=
=QTBd
-----END PGP SIGNATURE-----
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Licq-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/licq-devel