millennium-dev team mailing list archive
-
millennium-dev team
-
Mailing list archive
-
Message #00212
[Bug 1207919] Re: CCardStack should copy pointers when it's copied
** Changed in: libmillennium
Assignee: (unassigned) => Adam Malinowski (adayah)
** Changed in: libmillennium
Status: Confirmed => In Progress
--
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:
In Progress
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
References