aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/AutoComplete.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/AutoComplete.cxx')
-rw-r--r--src/AutoComplete.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/AutoComplete.cxx b/src/AutoComplete.cxx
index cc4b46dfa..1c847ce0f 100644
--- a/src/AutoComplete.cxx
+++ b/src/AutoComplete.cxx
@@ -33,7 +33,6 @@ AutoComplete::AutoComplete() :
typesep('?'),
ignoreCase(false),
chooseSingle(false),
- lb(0),
posStart(0),
startLen(0),
cancelAtStartPos(true),
@@ -43,14 +42,12 @@ AutoComplete::AutoComplete() :
widthLBDefault(100),
heightLBDefault(100),
autoSort(SC_ORDER_PRESORTED) {
- lb = ListBox::Allocate();
+ lb.reset(ListBox::Allocate());
}
AutoComplete::~AutoComplete() {
if (lb) {
lb->Destroy();
- delete lb;
- lb = 0;
}
}