From 3bbc0cf67cd5aa0ec5a1997794d21a87830bc618 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 24 Jan 2020 13:22:32 +0200 Subject: loplugin:makeshared in svgio..writerperfect Change-Id: I0f8de0f78c7a8fb78d47ee5dfed09019b4eb5288 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87357 Tested-by: Jenkins Reviewed-by: Noel Grandin --- vbahelper/source/vbahelper/vbacommandbars.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vbahelper') diff --git a/vbahelper/source/vbahelper/vbacommandbars.cxx b/vbahelper/source/vbahelper/vbacommandbars.cxx index 332249049b84..66d14d0cfa18 100644 --- a/vbahelper/source/vbahelper/vbacommandbars.cxx +++ b/vbahelper/source/vbahelper/vbacommandbars.cxx @@ -76,7 +76,7 @@ public: ScVbaCommandBars::ScVbaCommandBars( const uno::Reference< XHelperInterface >& xParent, const uno::Reference< uno::XComponentContext >& xContext, const uno::Reference< container::XIndexAccess >& xIndexAccess, const uno::Reference< frame::XModel >& xModel ) : CommandBars_BASE( xParent, xContext, xIndexAccess ) { - m_pCBarHelper.reset( new VbaCommandBarHelper( mxContext, xModel ) ); + m_pCBarHelper = std::make_shared( mxContext, xModel ); m_xNameAccess = m_pCBarHelper->getPersistentWindowState(); } -- cgit