xmlhelp/source/cxxhelp/provider/content.cxx | 5 +++-- xmlhelp/source/cxxhelp/provider/resultset.cxx | 4 ++-- xmlhelp/source/cxxhelp/provider/resultset.hxx | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-)
New commits: commit 5cb74685babe8ce8ea61bec515c0b701e0df34a5 Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Wed Aug 22 09:45:14 2018 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Wed Aug 22 13:24:24 2018 +0200 loplugin:useuniqueptr in chelp::DynamicResultSet Change-Id: If9ffa025ba0ce9a1c97c89ec50e71e7f90c5435b Reviewed-on: https://gerrit.libreoffice.org/59436 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/xmlhelp/source/cxxhelp/provider/content.cxx b/xmlhelp/source/cxxhelp/provider/content.cxx index e785daa4b1fa..1b7104950641 100644 --- a/xmlhelp/source/cxxhelp/provider/content.cxx +++ b/xmlhelp/source/cxxhelp/provider/content.cxx @@ -38,6 +38,7 @@ #include <ucbhelper/contentidentifier.hxx> #include <ucbhelper/propertyvalueset.hxx> #include <ucbhelper/cancelcommandexecution.hxx> +#include <o3tl/make_unique.hxx> #include "content.hxx" #include "provider.hxx" #include "resultset.hxx" @@ -289,7 +290,7 @@ uno::Any SAL_CALL Content::execute( = new DynamicResultSet( m_xContext, aOpenCommand, - new ResultSetForRootFactory( + o3tl::make_unique<ResultSetForRootFactory>( m_xContext, m_xProvider.get(), aOpenCommand.Properties, @@ -303,7 +304,7 @@ uno::Any SAL_CALL Content::execute( = new DynamicResultSet( m_xContext, aOpenCommand, - new ResultSetForQueryFactory( + o3tl::make_unique<ResultSetForQueryFactory>( m_xContext, m_xProvider.get(), aOpenCommand.Properties, diff --git a/xmlhelp/source/cxxhelp/provider/resultset.cxx b/xmlhelp/source/cxxhelp/provider/resultset.cxx index c6983ebcf954..23d7dcbf79e4 100644 --- a/xmlhelp/source/cxxhelp/provider/resultset.cxx +++ b/xmlhelp/source/cxxhelp/provider/resultset.cxx @@ -34,9 +34,9 @@ using namespace chelp; DynamicResultSet::DynamicResultSet( const Reference< XComponentContext >& rxContext, const OpenCommandArgument2& rCommand, - ResultSetFactory* pFactory ) + std::unique_ptr<ResultSetFactory> pFactory ) : ResultSetImplHelper( rxContext, rCommand ), - m_pFactory( pFactory ) + m_pFactory( std::move(pFactory) ) { } diff --git a/xmlhelp/source/cxxhelp/provider/resultset.hxx b/xmlhelp/source/cxxhelp/provider/resultset.hxx index 82849ab3abe3..24891246d766 100644 --- a/xmlhelp/source/cxxhelp/provider/resultset.hxx +++ b/xmlhelp/source/cxxhelp/provider/resultset.hxx @@ -42,7 +42,7 @@ namespace chelp { DynamicResultSet( const css::uno::Reference< css::uno::XComponentContext >& rxContext, const css::ucb::OpenCommandArgument2& rCommand, - ResultSetFactory* pFactory ); + std::unique_ptr<ResultSetFactory> pFactory ); virtual ~DynamicResultSet() override; }; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits