diff options
Diffstat (limited to 'canvas/source/vcl/canvas.cxx')
-rw-r--r-- | canvas/source/vcl/canvas.cxx | 2 |
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 ); |