aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/AutoComplete.cxx2
-rw-r--r--src/Platform.h2
2 files changed, 2 insertions, 2 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() {
diff --git a/src/Platform.h b/src/Platform.h
index c0a13d911..3b5b991b0 100644
--- a/src/Platform.h
+++ b/src/Platform.h
@@ -273,7 +273,7 @@ class ListBox : public Window {
public:
ListBox() noexcept;
~ListBox() override;
- static ListBox *Allocate();
+ static std::unique_ptr<ListBox> Allocate();
virtual void SetFont(const Font *font)=0;
virtual void Create(Window &parent, int ctrlID, Point location, int lineHeight_, bool unicodeMode_, int technology_)=0;