diff options
Diffstat (limited to 'gtk/PlatGTK.cxx')
-rwxr-xr-x | gtk/PlatGTK.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gtk/PlatGTK.cxx b/gtk/PlatGTK.cxx index 95cc9e509..2f37cf62d 100755 --- a/gtk/PlatGTK.cxx +++ b/gtk/PlatGTK.cxx @@ -1234,9 +1234,8 @@ public: void SetList(const char *listText, char separator, char typesep) override; }; -ListBox *ListBox::Allocate() { - ListBoxX *lb = new ListBoxX(); - return lb; +std::unique_ptr<ListBox> ListBox::Allocate() { + return std::make_unique<ListBoxX>(); } static int treeViewGetRowHeight(GtkTreeView *view) { |