aboutsummaryrefslogtreecommitdiffhomepage
path: root/cocoa/PlatCocoa.mm
diff options
context:
space:
mode:
Diffstat (limited to 'cocoa/PlatCocoa.mm')
-rw-r--r--cocoa/PlatCocoa.mm5
1 files changed, 2 insertions, 3 deletions
diff --git a/cocoa/PlatCocoa.mm b/cocoa/PlatCocoa.mm
index 0c6a96ed1..8e4323dca 100644
--- a/cocoa/PlatCocoa.mm
+++ b/cocoa/PlatCocoa.mm
@@ -1960,9 +1960,8 @@ ListBox::ListBox() noexcept {
ListBox::~ListBox() {
}
-ListBox *ListBox::Allocate() {
- ListBoxImpl *lb = new ListBoxImpl();
- return lb;
+std::unique_ptr<ListBox> ListBox::Allocate() {
+ return std::make_unique<ListBoxImpl>();
}
//--------------------------------------------------------------------------------------------------