diff options
author | Noel <noel.grandin@collabora.co.uk> | 2021-02-22 10:46:47 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-02-22 13:39:58 +0100 |
commit | 18aafdd0f936ab6bb4225447a328f5471d143b0d (patch) | |
tree | 194a080da5406a94d9a32e939f689b2037964c73 /accessibility/source/standard/vclxaccessiblecheckbox.cxx | |
parent | dffe94959ada5297c7c719497395f5dfe66c4d2f (diff) |
loplugin:refcounting in accessibility
Change-Id: Ic9e780dc3f834e2e8b5d3a8d8445419a4bd050dd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111300
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'accessibility/source/standard/vclxaccessiblecheckbox.cxx')
-rw-r--r-- | accessibility/source/standard/vclxaccessiblecheckbox.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/accessibility/source/standard/vclxaccessiblecheckbox.cxx b/accessibility/source/standard/vclxaccessiblecheckbox.cxx index a15ae4013ceb..f38bc3881b87 100644 --- a/accessibility/source/standard/vclxaccessiblecheckbox.cxx +++ b/accessibility/source/standard/vclxaccessiblecheckbox.cxx @@ -226,8 +226,7 @@ Reference< XAccessibleKeyBinding > VCLXAccessibleCheckBox::getAccessibleActionKe if ( nIndex != 0 ) throw IndexOutOfBoundsException(); - OAccessibleKeyBindingHelper* pKeyBindingHelper = new OAccessibleKeyBindingHelper(); - Reference< XAccessibleKeyBinding > xKeyBinding = pKeyBindingHelper; + rtl::Reference<OAccessibleKeyBindingHelper> pKeyBindingHelper = new OAccessibleKeyBindingHelper(); VclPtr<vcl::Window> pWindow = GetWindow(); if ( pWindow ) @@ -253,7 +252,7 @@ Reference< XAccessibleKeyBinding > VCLXAccessibleCheckBox::getAccessibleActionKe } } - return xKeyBinding; + return pKeyBindingHelper; } |