summaryrefslogtreecommitdiff
path: root/cppuhelper/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-01-23 16:36:33 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-01-24 07:18:44 +0100
commite5cfe9c050fbd601b64dc13fe6760e762a35a4d4 (patch)
tree8e98fba0391b0530295e0600963b333cafaa622c /cppuhelper/source
parentb1d48a0e22bb8d2eabead41a6a6b53ffaec932e4 (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 'cppuhelper/source')
-rw-r--r--cppuhelper/source/servicemanager.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/cppuhelper/source/servicemanager.cxx b/cppuhelper/source/servicemanager.cxx
index e9c0ce9907f2..77e4d2d49e04 100644
--- a/cppuhelper/source/servicemanager.cxx
+++ b/cppuhelper/source/servicemanager.cxx
@@ -376,10 +376,10 @@ void Parser::handleImplementation() {
reader_.getUrl()
+ ": <implementation> is missing \"name\" attribute");
}
- implementation_.reset(
- new cppuhelper::ServiceManager::Data::Implementation(
+ implementation_ =
+ std::make_shared<cppuhelper::ServiceManager::Data::Implementation>(
attrName, attrLoader_, attrUri_, attrEnvironment_, attrConstructor,
- attrPrefix_, alienContext_, reader_.getUrl()));
+ attrPrefix_, alienContext_, reader_.getUrl());
if (!data_->namedImplementations.emplace(attrName, implementation_).
second)
{