summaryrefslogtreecommitdiff
path: root/winaccessibility
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-09-17 18:35:42 +0200
committerStephan Bergmann <sbergman@redhat.com>2018-09-17 22:22:24 +0200
commit590e44c802d7809a3a4cfb71a5fa9603aff39bd9 (patch)
tree7bd68a3b3077c654b4fe113034ae6cb168290f9d /winaccessibility
parentf13c2ce1879182331b2cb57066e23b7a3fc0eb83 (diff)
loplugin:simplifyconstruct (clang-cl)
Change-Id: I7cae6b3f31b10efc72884bce4bda7bf6b380cbc2 Reviewed-on: https://gerrit.libreoffice.org/60597 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'winaccessibility')
-rw-r--r--winaccessibility/source/UAccCOM/EnumVariant.h3
-rw-r--r--winaccessibility/source/service/AccObjectWinManager.cxx2
2 files changed, 2 insertions, 3 deletions
diff --git a/winaccessibility/source/UAccCOM/EnumVariant.h b/winaccessibility/source/UAccCOM/EnumVariant.h
index a038270820cf..00e039ab018d 100644
--- a/winaccessibility/source/UAccCOM/EnumVariant.h
+++ b/winaccessibility/source/UAccCOM/EnumVariant.h
@@ -45,8 +45,7 @@ class ATL_NO_VTABLE CEnumVariant :
public:
CEnumVariant()
:m_lLBound(0),
- pUNOInterface(nullptr),
- m_pXAccessibleSelection(nullptr)
+ pUNOInterface(nullptr)
{
m_lCurrent = m_lLBound;
}
diff --git a/winaccessibility/source/service/AccObjectWinManager.cxx b/winaccessibility/source/service/AccObjectWinManager.cxx
index f1ec48216ecb..73c43cf2c111 100644
--- a/winaccessibility/source/service/AccObjectWinManager.cxx
+++ b/winaccessibility/source/service/AccObjectWinManager.cxx
@@ -399,7 +399,7 @@ int AccObjectWinManager::UpdateAccSelection(XAccessible* pXAcc)
if(pAccObj==nullptr)
return 0;
- Reference<XAccessible> pRChild = nullptr;
+ Reference<XAccessible> pRChild;
AccObject* pAccChildObj = nullptr;
int selectNum= pRSelection->getSelectedAccessibleChildCount();