diff options
author | Neil <nyamatongwe@gmail.com> | 2021-03-18 19:39:42 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2021-03-18 19:39:42 +1100 |
commit | 402e089842d5aa2bb3774a665e26c42dc91fa5b4 (patch) | |
tree | 58304e9b27215782eec1a5c38e0636b2a18bafef /src/Platform.h | |
parent | 43c4b61bdd3669c2cc08d50f10401f0b04befcc9 (diff) | |
download | scintilla-mirror-402e089842d5aa2bb3774a665e26c42dc91fa5b4.tar.gz |
Use unique_ptr for Surface::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 5ba79a936..0c0f37ff6 100644 --- a/src/Platform.h +++ b/src/Platform.h @@ -168,7 +168,7 @@ public: Surface &operator=(const Surface &) = delete; Surface &operator=(Surface &&) = delete; virtual ~Surface() {} - static Surface *Allocate(int technology); + static std::unique_ptr<Surface> Allocate(int technology); virtual void Init(WindowID wid)=0; virtual void Init(SurfaceID sid, WindowID wid)=0; |