From 402e089842d5aa2bb3774a665e26c42dc91fa5b4 Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 18 Mar 2021 19:39:42 +1100 Subject: Use unique_ptr for Surface::Allocate to show transfer of ownership. --- src/Platform.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Platform.h') 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 Allocate(int technology); virtual void Init(WindowID wid)=0; virtual void Init(SurfaceID sid, WindowID wid)=0; -- cgit v1.2.3