diff --git a/ui/layers/box_layer_widget.cpp b/ui/layers/box_layer_widget.cpp index 860fead..42333be 100644 --- a/ui/layers/box_layer_widget.cpp +++ b/ui/layers/box_layer_widget.cpp @@ -286,7 +286,7 @@ void BoxLayerWidget::addLeftButton(object_ptr button) { } void BoxLayerWidget::addTopButton(object_ptr button) { - _topButton = base::make_unique_q(button.release()); + _topButton = base::unique_qptr(button.release()); const auto raw = _topButton.get(); raw->setParent(this); raw->show();