diff options
Diffstat (limited to 'vcl/win')
-rw-r--r-- | vcl/win/source/gdi/cairo_win32_cairo.cxx | 8 | ||||
-rw-r--r-- | vcl/win/source/gdi/cairo_win32_cairo.hxx | 2 |
2 files changed, 4 insertions, 6 deletions
diff --git a/vcl/win/source/gdi/cairo_win32_cairo.cxx b/vcl/win/source/gdi/cairo_win32_cairo.cxx index 9cf81c7002de..65dd478bd1dc 100644 --- a/vcl/win/source/gdi/cairo_win32_cairo.cxx +++ b/vcl/win/source/gdi/cairo_win32_cairo.cxx @@ -170,14 +170,12 @@ namespace cairo * * @return The new virtual device **/ - boost::shared_ptr<VirtualDevice> Win32Surface::createVirtualDevice() const + VclPtr<VirtualDevice> Win32Surface::createVirtualDevice() const { SystemGraphicsData aSystemGraphicsData; - aSystemGraphicsData.nSize = sizeof(SystemGraphicsData); + aSystemGraphicsData.nSize = sizeof( SystemGraphicsData ); aSystemGraphicsData.hDC = cairo_win32_surface_get_dc( mpSurface.get() ); - - return boost::shared_ptr<VirtualDevice>( - new VirtualDevice( &aSystemGraphicsData, Size(1, 1), sal::static_int_cast<USHORT>(getDepth()) )); + return VclPtr<VirtualDevice>::Create( &aSystemGraphicsData, Size(1, 1), sal::static_int_cast<USHORT>( getDepth() ) ); } } // namespace cairo diff --git a/vcl/win/source/gdi/cairo_win32_cairo.hxx b/vcl/win/source/gdi/cairo_win32_cairo.hxx index dd1be37db7dd..5dee0eaa3dd8 100644 --- a/vcl/win/source/gdi/cairo_win32_cairo.hxx +++ b/vcl/win/source/gdi/cairo_win32_cairo.hxx @@ -43,7 +43,7 @@ namespace cairo { virtual CairoSurfaceSharedPtr getCairoSurface() const { return mpSurface; } virtual SurfaceSharedPtr getSimilar( int aContent, int width, int height ) const; - virtual boost::shared_ptr<VirtualDevice> createVirtualDevice() const; + virtual VclPtr<VirtualDevice> createVirtualDevice() const; virtual void flush() const; |