diff options
Diffstat (limited to 'gtk/PlatGTK.cxx')
-rwxr-xr-x | gtk/PlatGTK.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/PlatGTK.cxx b/gtk/PlatGTK.cxx index e5daf5b1a..aff6b5e30 100755 --- a/gtk/PlatGTK.cxx +++ b/gtk/PlatGTK.cxx @@ -949,8 +949,8 @@ void SurfaceImpl::SetDBCSMode(int codePage) { void SurfaceImpl::SetBidiR2L(bool) { } -Surface *Surface::Allocate(int) { - return new SurfaceImpl(); +std::unique_ptr<Surface> Surface::Allocate(int) { + return std::make_unique<SurfaceImpl>(); } Window::~Window() {} |