diff options
author | Noel <noel.grandin@collabora.co.uk> | 2021-02-21 13:33:00 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-02-21 16:10:51 +0100 |
commit | 7ffb71e759e5d29a505188d1cbf506dd57383a4a (patch) | |
tree | e1828c9b7a800cc51b4b16898b0303fc1789211b /forms/source/xforms/submission/submission_get.cxx | |
parent | 6dccc6b54e4bb13f765d494bcdcdd782fa11fe38 (diff) |
loplugin:refcounting in forms
Change-Id: I19d67e54f77e354eaddaaa7de1f3e22c2b7cdbf6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111280
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'forms/source/xforms/submission/submission_get.cxx')
-rw-r--r-- | forms/source/xforms/submission/submission_get.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/forms/source/xforms/submission/submission_get.cxx b/forms/source/xforms/submission/submission_get.cxx index 394c8b817486..956876199b3c 100644 --- a/forms/source/xforms/submission/submission_get.cxx +++ b/forms/source/xforms/submission/submission_get.cxx @@ -54,13 +54,13 @@ CSubmission::SubmissionResult CSubmissionGet::submit(const css::uno::Reference< css::uno::Reference< XInputStream > aInStream = apSerialization->getInputStream(); // create a commandEnvironment and use the default interaction handler - CCommandEnvironmentHelper *pHelper = new CCommandEnvironmentHelper; + rtl::Reference<CCommandEnvironmentHelper> pHelper = new CCommandEnvironmentHelper; if( aInteractionHandler.is() ) pHelper->m_aInteractionHandler = aInteractionHandler; else pHelper->m_aInteractionHandler.set( css::task::InteractionHandler::createWithParent(m_xContext, nullptr), UNO_QUERY_THROW); - CProgressHandlerHelper *pProgressHelper = new CProgressHandlerHelper; + rtl::Reference<CProgressHandlerHelper> pProgressHelper = new CProgressHandlerHelper; pHelper->m_aProgressHandler.set(pProgressHelper); // UCB has ownership of environment... |