diff options
Diffstat (limited to 'vcl/unx/gtk3/gdi')
-rw-r--r-- | vcl/unx/gtk3/gdi/cairo_gtk3_cairo.cxx | 4 | ||||
-rw-r--r-- | vcl/unx/gtk3/gdi/cairo_gtk3_cairo.hxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/vcl/unx/gtk3/gdi/cairo_gtk3_cairo.cxx b/vcl/unx/gtk3/gdi/cairo_gtk3_cairo.cxx index 6917596f473d..b9a2751fc4aa 100644 --- a/vcl/unx/gtk3/gdi/cairo_gtk3_cairo.cxx +++ b/vcl/unx/gtk3/gdi/cairo_gtk3_cairo.cxx @@ -107,9 +107,9 @@ namespace cairo mpGraphics->WidgetQueueDraw(); } - boost::shared_ptr<VirtualDevice> Gtk3Surface::createVirtualDevice() const + VclPtr<VirtualDevice> Gtk3Surface::createVirtualDevice() const { - return boost::shared_ptr<VirtualDevice>(new VirtualDevice(NULL, Size(1, 1), 0)); + return VclPtrInstance<VirtualDevice>(nullptr, Size(1, 1), 0); } } diff --git a/vcl/unx/gtk3/gdi/cairo_gtk3_cairo.hxx b/vcl/unx/gtk3/gdi/cairo_gtk3_cairo.hxx index dee313f526ee..5bb12eaf2eca 100644 --- a/vcl/unx/gtk3/gdi/cairo_gtk3_cairo.hxx +++ b/vcl/unx/gtk3/gdi/cairo_gtk3_cairo.hxx @@ -37,7 +37,7 @@ namespace cairo { virtual CairoSurfaceSharedPtr getCairoSurface() const SAL_OVERRIDE { return mpSurface; } virtual SurfaceSharedPtr getSimilar(int nContentType, int width, int height) const SAL_OVERRIDE; - virtual boost::shared_ptr<VirtualDevice> createVirtualDevice() const SAL_OVERRIDE; + virtual VclPtr<VirtualDevice> createVirtualDevice() const SAL_OVERRIDE; virtual void flush() const SAL_OVERRIDE; |