diff options
Diffstat (limited to 'win32')
| -rw-r--r-- | win32/PlatWin.cxx | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index aac888693..fc4d56cf1 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -2237,14 +2237,14 @@ void SurfaceD2D::SetBidiR2L(bool) {  #endif -Surface *Surface::Allocate(int technology) { +std::unique_ptr<Surface> Surface::Allocate(int technology) {  #if defined(USE_D2D)  	if (technology == SCWIN_TECH_GDI) -		return new SurfaceGDI; +		return std::make_unique<SurfaceGDI>();  	else -		return new SurfaceD2D; +		return std::make_unique<SurfaceD2D>();  #else -	return new SurfaceGDI; +	return std::make_unique<SurfaceGDI>();  #endif  }  | 
