[Qt-interest] QList, copy problems
Thiago Macieira
thiago at kde.org
Sat Oct 15 12:35:24 CEST 2011
On Saturday, 15 de October de 2011 12:06:44 Till Oliver Knoll wrote:
> Am 15.10.2011 um 07:07 schrieb Sahana Bhaskar <Sahana_Bhaskar at infosys.com>:
> > Any inputs will be appreciated. If I use operator= any modifications to
> > the original list( after initializing ) is causing a crash!!!
>
> Ouch! = does only a shallow copy! In your case you might need a deep copy
> however!
Deep copies should never be necessary.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Software Architect - Intel Open Source Technology Center
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20111015/fc9d6f58/attachment.bin
More information about the Qt-interest-old
mailing list