diff options
author | Arnaud Versini <Arnaud.Versini@libreoffice.org> | 2017-07-23 16:25:20 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-15 11:28:21 +0200 |
commit | 5d060fd07a16c80bd94d27b08fefe1d0aaf418f7 (patch) | |
tree | 38801d4f83a905409de9a85871ac3f8f012465f2 /accessibility/source/standard/vclxaccessiblemenuitem.cxx | |
parent | 359201c9b4ad26fd445688de2c9a1d15f253d37d (diff) |
accessibility: remove useless calls to virtual methods.
This also removes a lot of useless recursive locks.
Change-Id: Ifee7dbf2095bf0431eb27e8022e7f5299c46388f
Reviewed-on: https://gerrit.libreoffice.org/42122
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'accessibility/source/standard/vclxaccessiblemenuitem.cxx')
-rw-r--r-- | accessibility/source/standard/vclxaccessiblemenuitem.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/accessibility/source/standard/vclxaccessiblemenuitem.cxx b/accessibility/source/standard/vclxaccessiblemenuitem.cxx index 60de73778696..259501bfe4dd 100644 --- a/accessibility/source/standard/vclxaccessiblemenuitem.cxx +++ b/accessibility/source/standard/vclxaccessiblemenuitem.cxx @@ -405,7 +405,7 @@ sal_Bool VCLXAccessibleMenuItem::doAccessibleAction ( sal_Int32 nIndex ) { OExternalLockGuard aGuard( this ); - if ( nIndex < 0 || nIndex >= getAccessibleActionCount() ) + if ( nIndex != 0 ) throw IndexOutOfBoundsException(); Click(); @@ -418,7 +418,7 @@ OUString VCLXAccessibleMenuItem::getAccessibleActionDescription ( sal_Int32 nInd { OExternalLockGuard aGuard( this ); - if ( nIndex < 0 || nIndex >= getAccessibleActionCount() ) + if ( nIndex != 0 ) throw IndexOutOfBoundsException(); return OUString(RID_STR_ACC_ACTION_SELECT); @@ -429,7 +429,7 @@ Reference< XAccessibleKeyBinding > VCLXAccessibleMenuItem::getAccessibleActionKe { OExternalLockGuard aGuard( this ); - if ( nIndex < 0 || nIndex >= getAccessibleActionCount() ) + if ( nIndex != 0 ) throw IndexOutOfBoundsException(); OAccessibleKeyBindingHelper* pKeyBindingHelper = new OAccessibleKeyBindingHelper(); |