summaryrefslogtreecommitdiff
path: root/vcl/quartz
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/quartz')
-rw-r--r--vcl/quartz/cairo_quartz_cairo.cxx6
-rw-r--r--vcl/quartz/cairo_quartz_cairo.hxx2
2 files changed, 4 insertions, 4 deletions
diff --git a/vcl/quartz/cairo_quartz_cairo.cxx b/vcl/quartz/cairo_quartz_cairo.cxx
index b3a05541c438..0b0835c8fb05 100644
--- a/vcl/quartz/cairo_quartz_cairo.cxx
+++ b/vcl/quartz/cairo_quartz_cairo.cxx
@@ -244,13 +244,13 @@ namespace cairo
*
* @return The new virtual device
**/
- boost::shared_ptr<VirtualDevice> QuartzSurface::createVirtualDevice() const
+ VclPtr<VirtualDevice> QuartzSurface::createVirtualDevice() const
{
SystemGraphicsData aSystemGraphicsData;
aSystemGraphicsData.nSize = sizeof(SystemGraphicsData);
aSystemGraphicsData.rCGContext = getCGContext();
- return boost::shared_ptr<VirtualDevice>(
- new VirtualDevice( &aSystemGraphicsData, Size(1, 1), getDepth() ));
+ return VclPtr<VirtualDevice>(
+ VclPtr<VirtualDevice>::Create( &aSystemGraphicsData, Size(1, 1), getDepth() ));
}
} // namespace cairo
diff --git a/vcl/quartz/cairo_quartz_cairo.hxx b/vcl/quartz/cairo_quartz_cairo.hxx
index a3f94d20abf3..9c31c42c6ab9 100644
--- a/vcl/quartz/cairo_quartz_cairo.hxx
+++ b/vcl/quartz/cairo_quartz_cairo.hxx
@@ -55,7 +55,7 @@ namespace cairo {
virtual CairoSurfaceSharedPtr getCairoSurface() const { return mpSurface; }
virtual SurfaceSharedPtr getSimilar( Content aContent, int width, int height ) const;
- virtual boost::shared_ptr<VirtualDevice> createVirtualDevice() const;
+ virtual VclPtr<VirtualDevice> createVirtualDevice() const;
virtual void flush() const;