aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/AutoComplete.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2021-03-17 16:55:13 +1100
committerNeil <nyamatongwe@gmail.com>2021-03-17 16:55:13 +1100
commit30e8720a235014e96125f9142e5c0a7e628526ce (patch)
tree5e9e6d35a9d563e0c481b8983a5f1ce6fce08614 /src/AutoComplete.cxx
parentd5b1240eece116b2a13b635d25b041bf0de19305 (diff)
downloadscintilla-mirror-30e8720a235014e96125f9142e5c0a7e628526ce.tar.gz
Use unique_ptr for ListBox::Allocate to show transfer of ownership.
Diffstat (limited to 'src/AutoComplete.cxx')
-rw-r--r--src/AutoComplete.cxx2
1 files changed, 1 insertions, 1 deletions
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() {