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. --- qt/ScintillaEditBase/PlatQt.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qt/ScintillaEditBase/PlatQt.cpp') diff --git a/qt/ScintillaEditBase/PlatQt.cpp b/qt/ScintillaEditBase/PlatQt.cpp index d49d22f0f..9cbf591b9 100644 --- a/qt/ScintillaEditBase/PlatQt.cpp +++ b/qt/ScintillaEditBase/PlatQt.cpp @@ -611,9 +611,9 @@ QPainter *SurfaceImpl::GetPainter() return painter; } -Surface *Surface::Allocate(int) +std::unique_ptr Surface::Allocate(int) { - return new SurfaceImpl; + return std::make_unique(); } -- cgit v1.2.3