diff options
Diffstat (limited to 'cppcanvas/source/wrapper/implbitmap.cxx')
-rw-r--r-- | cppcanvas/source/wrapper/implbitmap.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cppcanvas/source/wrapper/implbitmap.cxx b/cppcanvas/source/wrapper/implbitmap.cxx index e5e8b8734c85..f7465e5d7188 100644 --- a/cppcanvas/source/wrapper/implbitmap.cxx +++ b/cppcanvas/source/wrapper/implbitmap.cxx @@ -40,9 +40,9 @@ namespace cppcanvas::internal uno::Reference< rendering::XBitmapCanvas > xBitmapCanvas( rBitmap, uno::UNO_QUERY ); if( xBitmapCanvas.is() ) - mpBitmapCanvas.reset( new ImplBitmapCanvas( + mpBitmapCanvas = std::make_shared<ImplBitmapCanvas>( uno::Reference< rendering::XBitmapCanvas >(rBitmap, - uno::UNO_QUERY) ) ); + uno::UNO_QUERY) ); } ImplBitmap::~ImplBitmap() |