Take ownership of created pointers on Element class.

This commit is contained in:
Dario
2025-01-12 22:48:32 -03:00
committed by Mr-Wiseguy
parent e037e1a8c6
commit 319788b5ba
9 changed files with 83 additions and 65 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ namespace recompui {
set_cursor(Cursor::Pointer);
set_border_width(2.0f);
floater = std::make_unique<Element>(this);
floater = new Element(this);
floater->set_position(Position::Relative);
floater->set_top(2.0f);
floater->set_width(80.0f);