summaryrefslogtreecommitdiff
path: root/winaccessibility
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2023-10-10 12:41:53 +0100
committerMichael Weghorn <m.weghorn@posteo.de>2023-10-11 07:20:11 +0200
commit7b2ed8ef83220cad2982e53948fe227770006a61 (patch)
tree6fd68d20fdaedf4bbdfd62ce0a47400739eed8c0 /winaccessibility
parent3191b322b59cab22ec4c67c0d83520ff577f7ae8 (diff)
wina11y: Drop unnecessary check for empty Reference
Using operator= with either an empty Reference or nullptr has the same effect. Change-Id: Ifa33127f3718ba4bbf3d364484b412b4108719a8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157765 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'winaccessibility')
-rw-r--r--winaccessibility/source/UAccCOM/AccTextBase.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/winaccessibility/source/UAccCOM/AccTextBase.cxx b/winaccessibility/source/UAccCOM/AccTextBase.cxx
index 27c8f74c341c..131d001b27df 100644
--- a/winaccessibility/source/UAccCOM/AccTextBase.cxx
+++ b/winaccessibility/source/UAccCOM/AccTextBase.cxx
@@ -883,10 +883,7 @@ COM_DECLSPEC_NOTHROW STDMETHODIMP CAccTextBase::put_XInterface(hyper pXInterface
return E_FAIL;
}
Reference<XAccessibleText> pRXI(pRContext,UNO_QUERY);
- if( !pRXI.is() )
- pRXText = nullptr;
- else
- pRXText = pRXI;
+ pRXText = pRXI;
return S_OK;
} catch(...) { return E_FAIL; }