diff options
Diffstat (limited to 'qt/ScintillaEditBase/PlatQt.cpp')
-rw-r--r-- | qt/ScintillaEditBase/PlatQt.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qt/ScintillaEditBase/PlatQt.cpp b/qt/ScintillaEditBase/PlatQt.cpp index 2488d9687..7451a3077 100644 --- a/qt/ScintillaEditBase/PlatQt.cpp +++ b/qt/ScintillaEditBase/PlatQt.cpp @@ -1042,9 +1042,9 @@ ListWidget *ListBoxImpl::GetWidget() const noexcept ListBox::ListBox() noexcept {} ListBox::~ListBox() {} -ListBox *ListBox::Allocate() +std::unique_ptr<ListBox> ListBox::Allocate() { - return new ListBoxImpl(); + return std::make_unique<ListBoxImpl>(); } ListWidget::ListWidget(QWidget *parent) : QListWidget(parent), delegate(nullptr) |