aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Platform.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2021-03-18 19:39:42 +1100
committerNeil <nyamatongwe@gmail.com>2021-03-18 19:39:42 +1100
commit402e089842d5aa2bb3774a665e26c42dc91fa5b4 (patch)
tree58304e9b27215782eec1a5c38e0636b2a18bafef /src/Platform.h
parent43c4b61bdd3669c2cc08d50f10401f0b04befcc9 (diff)
downloadscintilla-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.h2
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;