diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2014-08-12 08:37:56 +0200 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2014-08-13 10:10:42 +0200 |
commit | 544434c534e280ba7a13a5f9e9377ffebb7151fb (patch) | |
tree | 63d5c6d28462dd7a41b75dac8334b157f2e40c49 /winaccessibility | |
parent | e094863117887b38a379982ff08695acae8e0e15 (diff) |
warning C4189: local variable is initialized but not referenced
Change-Id: I75092737f69b92bb46ea6bdd619aa54c759d8d65
Diffstat (limited to 'winaccessibility')
-rw-r--r-- | winaccessibility/inc/AccObject.hxx | 2 | ||||
-rw-r--r-- | winaccessibility/source/service/AccObject.cxx | 6 |
2 files changed, 3 insertions, 5 deletions
diff --git a/winaccessibility/inc/AccObject.hxx b/winaccessibility/inc/AccObject.hxx index 3ae0ca90fc22..3f1c9ab2a241 100644 --- a/winaccessibility/inc/AccObject.hxx +++ b/winaccessibility/inc/AccObject.hxx @@ -60,7 +60,7 @@ private: ::com::sun::star::uno::Reference < ::com::sun::star::accessibility::XAccessibleAction > m_xAccActionRef; ::com::sun::star::uno::Reference < ::com::sun::star::accessibility::XAccessibleContext > m_xAccContextRef; - sal_Bool ImplInitializeCreateObj();//create COM object + void ImplInitializeCreateObj();//create COM object void UpdateActionDesc(); void UpdateRole(); diff --git a/winaccessibility/source/service/AccObject.cxx b/winaccessibility/source/service/AccObject.cxx index eb5bcb05ce87..4174e4925755 100644 --- a/winaccessibility/source/service/AccObject.cxx +++ b/winaccessibility/source/service/AccObject.cxx @@ -157,7 +157,7 @@ AccObject::AccObject(XAccessible* pAcc, AccObjectManagerAgent* pAgent, m_bShouldDestroy(sal_False), m_xAccRef( pAcc ) { - sal_Bool bRet = ImplInitializeCreateObj(); + ImplInitializeCreateObj(); m_xAccContextRef = m_xAccRef->getAccessibleContext(); m_xAccActionRef = Reference< XAccessibleAction > (m_xAccContextRef,UNO_QUERY); @@ -245,13 +245,11 @@ void AccObject::UpdateValidWindow() * @param * @return If the method is correctly processed. */ -sal_Bool AccObject::ImplInitializeCreateObj() +void AccObject::ImplInitializeCreateObj() { m_pIMAcc = UAccCOMCreateInstance(); assert(m_pIMAcc); - - return m_pIMAcc != 0; } /** |