summaryrefslogtreecommitdiff
path: root/winaccessibility/source
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2023-11-13 13:10:39 +0000
committerMichael Weghorn <m.weghorn@posteo.de>2023-11-14 08:08:23 +0100
commit9356c479a62e83f1e89be0dd455c60601c35ef86 (patch)
tree1bf9efe848380e8b07bb1e0731dc69467a625925 /winaccessibility/source
parentc60a9db1f2a8e2a088c6b89bcdff4901b28f2864 (diff)
wina11y: Drop unnecessary local var 'Role'
Just use `m_accRole` directly, as already happens elsewhere in this method. Change-Id: Ibd3358e9f85621ba7d9c99d5ed0812b6c692d473 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159379 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'winaccessibility/source')
-rw-r--r--winaccessibility/source/service/AccObject.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/winaccessibility/source/service/AccObject.cxx b/winaccessibility/source/service/AccObject.cxx
index 7c5a4243af84..aeb220134843 100644
--- a/winaccessibility/source/service/AccObject.cxx
+++ b/winaccessibility/source/service/AccObject.cxx
@@ -600,7 +600,6 @@ DWORD AccObject::GetMSAAStateFromUNO(sal_Int64 nState)
assert(false);
return IState;
}
- short Role = m_accRole;
switch( nState )
{
@@ -608,7 +607,7 @@ DWORD AccObject::GetMSAAStateFromUNO(sal_Int64 nState)
IState = STATE_SYSTEM_BUSY;
break;
case CHECKED:
- if( Role == PUSH_BUTTON || Role == TOGGLE_BUTTON )
+ if (m_accRole == PUSH_BUTTON || m_accRole == TOGGLE_BUTTON)
{
IState = STATE_SYSTEM_PRESSED;
}
@@ -666,7 +665,7 @@ DWORD AccObject::GetMSAAStateFromUNO(sal_Int64 nState)
{
sal_Bool isExpanded = true;
sal_Bool isExpandable = true;
- if( Role == PUSH_BUTTON || Role == TOGGLE_BUTTON || BUTTON_DROPDOWN == Role )
+ if (m_accRole == PUSH_BUTTON || m_accRole == TOGGLE_BUTTON || m_accRole == BUTTON_DROPDOWN)
{
IState = STATE_SYSTEM_HASPOPUP;
}