From e5cfe9c050fbd601b64dc13fe6760e762a35a4d4 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 23 Jan 2020 16:36:33 +0200 Subject: loplugin:makeshared in connectivity..cppuhelper Change-Id: Id8064e961a64bb03bc0fb61e375cdcf769b340cd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87276 Tested-by: Jenkins Reviewed-by: Noel Grandin --- cppuhelper/source/servicemanager.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cppuhelper/source') 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() + ": is missing \"name\" attribute"); } - implementation_.reset( - new cppuhelper::ServiceManager::Data::Implementation( + implementation_ = + std::make_shared( attrName, attrLoader_, attrUri_, attrEnvironment_, attrConstructor, - attrPrefix_, alienContext_, reader_.getUrl())); + attrPrefix_, alienContext_, reader_.getUrl()); if (!data_->namedImplementations.emplace(attrName, implementation_). second) { -- cgit