aboutsummaryrefslogtreecommitdiffhomepage
path: root/gtk/PlatGTK.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/PlatGTK.cxx')
-rwxr-xr-xgtk/PlatGTK.cxx4
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() {}