diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-01-23 16:36:33 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-01-24 07:18:44 +0100 |
commit | e5cfe9c050fbd601b64dc13fe6760e762a35a4d4 (patch) | |
tree | 8e98fba0391b0530295e0600963b333cafaa622c /cppcanvas/source/wrapper/implcustomsprite.cxx | |
parent | b1d48a0e22bb8d2eabead41a6a6b53ffaec932e4 (diff) |
loplugin:makeshared in connectivity..cppuhelper
Change-Id: Id8064e961a64bb03bc0fb61e375cdcf769b340cd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87276
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cppcanvas/source/wrapper/implcustomsprite.cxx')
-rw-r--r-- | cppcanvas/source/wrapper/implcustomsprite.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cppcanvas/source/wrapper/implcustomsprite.cxx b/cppcanvas/source/wrapper/implcustomsprite.cxx index 999f312c3c2f..624c15dee7e1 100644 --- a/cppcanvas/source/wrapper/implcustomsprite.cxx +++ b/cppcanvas/source/wrapper/implcustomsprite.cxx @@ -60,7 +60,7 @@ namespace cppcanvas::internal if( mpLastCanvas.get() == nullptr || mpLastCanvas->getUNOCanvas() != xCanvas ) { - mpLastCanvas = CanvasSharedPtr( new ImplCanvas( xCanvas ) ); + mpLastCanvas = std::make_shared<ImplCanvas>( xCanvas ); } return mpLastCanvas; |