summaryrefslogtreecommitdiff
path: root/vcl/source/app
diff options
context:
space:
mode:
authorNoel <noel.grandin@collabora.co.uk>2021-02-19 08:40:18 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-02-19 08:46:44 +0100
commit7b649f835cc00ed76927c6821a135605609bed4e (patch)
tree62a364fe0991e9b8c3e171cbc84bbac78565dcb9 /vcl/source/app
parent34ad5eaebf6548f6006d97aa46837ca1f1dd141b (diff)
loplugin:refcounting in vcl
Change-Id: Ieca3dd33a7ae40c3f7b8ba30f763d71a548cd144 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111171 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/app')
-rw-r--r--vcl/source/app/salvtables.cxx6
-rw-r--r--vcl/source/app/unohelp2.cxx2
2 files changed, 4 insertions, 4 deletions
diff --git a/vcl/source/app/salvtables.cxx b/vcl/source/app/salvtables.cxx
index 378a43f54896..31964747cd11 100644
--- a/vcl/source/app/salvtables.cxx
+++ b/vcl/source/app/salvtables.cxx
@@ -5936,8 +5936,8 @@ a11yref SalInstanceDrawingArea::get_accessible_parent()
a11yrelationset SalInstanceDrawingArea::get_accessible_relation_set()
{
- utl::AccessibleRelationSetHelper* pRelationSetHelper = new utl::AccessibleRelationSetHelper;
- css::uno::Reference<css::accessibility::XAccessibleRelationSet> xSet = pRelationSetHelper;
+ rtl::Reference<utl::AccessibleRelationSetHelper> pRelationSetHelper
+ = new utl::AccessibleRelationSetHelper;
vcl::Window* pWindow = m_xDrawingArea.get();
if (pWindow)
{
@@ -5960,7 +5960,7 @@ a11yrelationset SalInstanceDrawingArea::get_accessible_relation_set()
css::accessibility::AccessibleRelationType::MEMBER_OF, aSequence));
}
}
- return xSet;
+ return pRelationSetHelper;
}
Point SalInstanceDrawingArea::get_accessible_location()
diff --git a/vcl/source/app/unohelp2.cxx b/vcl/source/app/unohelp2.cxx
index bc3e64573ab2..ab53a4c7f27f 100644
--- a/vcl/source/app/unohelp2.cxx
+++ b/vcl/source/app/unohelp2.cxx
@@ -47,7 +47,7 @@ namespace vcl::unohelper {
if ( !rxClipboard.is() )
return;
- TextDataObject* pDataObj = new TextDataObject( rContent );
+ rtl::Reference<TextDataObject> pDataObj = new TextDataObject( rContent );
SolarMutexReleaser aReleaser;
try