summaryrefslogtreecommitdiffstats
path: root/cppuhelper
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
parentloplugin:makeshared in chart2..comphelper (diff)
downloadcore-e5cfe9c050fbd601b64dc13fe6760e762a35a4d4.tar.gz
core-e5cfe9c050fbd601b64dc13fe6760e762a35a4d4.zip
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')
-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)
{