wesnoth
wesnoth copied to clipboard
GUI2/Widgets: use unique_ptr for builder ptrs
They really didn't need to be shared_ptrs, except it was easier to copy things around (especially when builders held containers of builder ptrs).
This makes all widget_builder::build overrides non-const to facilitate move semantics from builders to widgets, if desired.