diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-04-27 11:01:47 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-04-27 18:30:58 +0200 |
commit | c275184ae37d145f428a459a07917e127bd67577 (patch) | |
tree | 098dcd677a263e26252443ed79a5c4b85ea640ca /vcl/source/gdi/WidgetDefinition.cxx | |
parent | 129f55097f926661f00919329fb28c6a85ecebbb (diff) |
loplugin:makeshared in vcl
Change-Id: I990fafa8b01e94aef58d6cad30bc13de539ea496
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92968
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/gdi/WidgetDefinition.cxx')
-rw-r--r-- | vcl/source/gdi/WidgetDefinition.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/gdi/WidgetDefinition.cxx b/vcl/source/gdi/WidgetDefinition.cxx index 3db9214c45ce..3c93f1ac5601 100644 --- a/vcl/source/gdi/WidgetDefinition.cxx +++ b/vcl/source/gdi/WidgetDefinition.cxx @@ -176,7 +176,7 @@ void WidgetDefinitionState::addDrawImage(OUString const& sSource) void WidgetDefinitionState::addDrawExternal(OUString const& sSource) { - auto pCommand(std::make_unique<WidgetDrawActionExternal>()); + auto pCommand(std::make_shared<WidgetDrawActionExternal>()); pCommand->msSource = sSource; mpWidgetDrawActions.push_back(std::move(pCommand)); } |