Use std::shared_ptr for UI::Panel children
Bug #1792079 reported by
GunChleoc
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Won't Fix
|
Medium
|
Unassigned |
Bug Description
Since the Dropdown class need to hook into a higher parent, it is unclear who will destroy its list. The solution I'm seeing for this is to change the UI::Panel implementation to use shared_ptr.
However, this will be a massive change that will have to be made in one go, so we will need to make sure that there are no UI-related branches still open before we star work on this.
To post a comment you must log in.
Migrated to https:/ /github. com/widelands/ widelands/ issues/ 1080