millennium-dev team mailing list archive
-
millennium-dev team
-
Mailing list archive
-
Message #00208
[Bug 1207919] [NEW] CCardStack should copy pointers when it's copied
Public bug reported:
Currently a copy (done with a copy constructor or with an assignment operator) of a CCardStack instance has the same ICard pointers as the original one.
This wrong, as each CCardStack should have it's own set of card instances.
Therefore when creating a copy of CCardStack all cards should be clone()d, and when a CCardStack is destroyed, it should delete all its pointers.
** Affects: libmillennium
Importance: Medium
Status: Confirmed
** Tags: bitesize
--
You received this bug notification because you are a member of
Millennium Developers, which is subscribed to libMillennium.
https://bugs.launchpad.net/bugs/1207919
Title:
CCardStack should copy pointers when it's copied
Status in libMillennium:
Confirmed
Bug description:
Currently a copy (done with a copy constructor or with an assignment operator) of a CCardStack instance has the same ICard pointers as the original one.
This wrong, as each CCardStack should have it's own set of card instances.
Therefore when creating a copy of CCardStack all cards should be clone()d, and when a CCardStack is destroyed, it should delete all its pointers.
To manage notifications about this bug go to:
https://bugs.launchpad.net/libmillennium/+bug/1207919/+subscriptions
Follow ups
References