From eac1daddf376f44b55b5d592cdada2b7775f2910 Mon Sep 17 00:00:00 2001 From: Noel Date: Sun, 21 Feb 2021 20:03:52 +0200 Subject: loplugin:refcounting in dbaccess Change-Id: I8d8b33b5488dd1568f0105425d033da42578b4e3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111289 Tested-by: Jenkins Reviewed-by: Noel Grandin --- dbaccess/source/ui/dlg/CollectionView.cxx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'dbaccess/source/ui/dlg/CollectionView.cxx') diff --git a/dbaccess/source/ui/dlg/CollectionView.cxx b/dbaccess/source/ui/dlg/CollectionView.cxx index 6b978bc301c4..77dd170785b2 100644 --- a/dbaccess/source/ui/dlg/CollectionView.cxx +++ b/dbaccess/source/ui/dlg/CollectionView.cxx @@ -141,12 +141,11 @@ IMPL_LINK_NOARG(OCollectionView, Save_Click, weld::Button&, void) Reference xHandler( InteractionHandler::createWithParent(m_xContext, m_xDialog->GetXWindow())); - OInteractionRequest* pRequest = new OInteractionRequest(makeAny(aException)); - Reference< XInteractionRequest > xRequest(pRequest); + rtl::Reference pRequest = new OInteractionRequest(makeAny(aException)); - OInteractionApprove* pApprove = new OInteractionApprove; + rtl::Reference pApprove = new OInteractionApprove; pRequest->addContinuation(pApprove); - xHandler->handle(xRequest); + xHandler->handle(pRequest); return; } -- cgit