Kaydet (Commit) 5cb74685 authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:useuniqueptr in chelp::DynamicResultSet

Change-Id: If9ffa025ba0ce9a1c97c89ec50e71e7f90c5435b
Reviewed-on: https://gerrit.libreoffice.org/59436
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 5f7d8f68
......@@ -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,
......
......@@ -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) )
{
}
......
......@@ -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;
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment