summaryrefslogtreecommitdiff
path: root/winaccessibility
diff options
context:
space:
mode:
Diffstat (limited to 'winaccessibility')
-rw-r--r--winaccessibility/source/UAccCOM/AccComponentBase.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/winaccessibility/source/UAccCOM/AccComponentBase.cxx b/winaccessibility/source/UAccCOM/AccComponentBase.cxx
index 27f8354d43de..f0a74a1d09aa 100644
--- a/winaccessibility/source/UAccCOM/AccComponentBase.cxx
+++ b/winaccessibility/source/UAccCOM/AccComponentBase.cxx
@@ -139,10 +139,7 @@ COM_DECLSPEC_NOTHROW STDMETHODIMP CAccComponentBase::put_XInterface(hyper pXInte
return E_FAIL;
}
Reference<XAccessibleComponent> pRXI(pRContext, UNO_QUERY);
- if (!pRXI.is())
- pRXComp = nullptr;
- else
- pRXComp = pRXI.get();
+ pRXComp = pRXI;
return S_OK;
}