1 2 3 4 5 6 7 8 9 10 11 12 13
#include "cru/ui/components/Component.h" namespace cru::ui::components { void Component::DeleteIfDeleteByParent(bool delete_later) { if (delete_by_parent_) { if (delete_later) { DeleteLater(); } else { delete this; } } } } // namespace cru::ui::components