From 30e8720a235014e96125f9142e5c0a7e628526ce Mon Sep 17 00:00:00 2001 From: Neil Date: Wed, 17 Mar 2021 16:55:13 +1100 Subject: Use unique_ptr for ListBox::Allocate to show transfer of ownership. --- src/AutoComplete.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/AutoComplete.cxx') diff --git a/src/AutoComplete.cxx b/src/AutoComplete.cxx index 9baf0ab67..102624bbb 100644 --- a/src/AutoComplete.cxx +++ b/src/AutoComplete.cxx @@ -43,7 +43,7 @@ AutoComplete::AutoComplete() : widthLBDefault(100), heightLBDefault(100), autoSort(SC_ORDER_PRESORTED) { - lb.reset(ListBox::Allocate()); + lb = ListBox::Allocate(); } AutoComplete::~AutoComplete() { -- cgit v1.2.3