wesnoth icon indicating copy to clipboard operation
wesnoth copied to clipboard

GUI2/Widgets: use unique_ptr for builder ptrs

Open Vultraz opened this issue 1 year ago • 0 comments

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.

Vultraz avatar Oct 06 '24 00:10 Vultraz