summaryrefslogtreecommitdiff
path: root/canvas/source/vcl/canvas.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'canvas/source/vcl/canvas.cxx')
-rw-r--r--canvas/source/vcl/canvas.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/canvas/source/vcl/canvas.cxx b/canvas/source/vcl/canvas.cxx
index 9cbb1c0d7467..4713f8ab9d34 100644
--- a/canvas/source/vcl/canvas.cxx
+++ b/canvas/source/vcl/canvas.cxx
@@ -87,7 +87,7 @@ namespace vclcanvas
if( !pOutDev )
throw lang::NoSupportException("Passed OutDev invalid!", nullptr);
- OutDevProviderSharedPtr pOutdevProvider( new OutDevHolder(*pOutDev) );
+ OutDevProviderSharedPtr pOutdevProvider = std::make_shared<OutDevHolder>(*pOutDev);
// setup helper
maDeviceHelper.init( pOutdevProvider );