diff options
author | Neil <nyamatongwe@gmail.com> | 2021-03-17 16:55:13 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2021-03-17 16:55:13 +1100 |
commit | 30e8720a235014e96125f9142e5c0a7e628526ce (patch) | |
tree | 5e9e6d35a9d563e0c481b8983a5f1ce6fce08614 /src/Platform.h | |
parent | d5b1240eece116b2a13b635d25b041bf0de19305 (diff) | |
download | scintilla-mirror-30e8720a235014e96125f9142e5c0a7e628526ce.tar.gz |
Use unique_ptr for ListBox::Allocate to show transfer of ownership.
Diffstat (limited to 'src/Platform.h')
-rw-r--r-- | src/Platform.h | 2 |
1 files changed, 1 insertions, 1 deletions
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; |