summaryrefslogtreecommitdiffstats
path: root/accessible/generic/BaseAccessibles.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'accessible/generic/BaseAccessibles.cpp')
-rw-r--r--accessible/generic/BaseAccessibles.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/accessible/generic/BaseAccessibles.cpp b/accessible/generic/BaseAccessibles.cpp
index 520f54e96b..eaaad02296 100644
--- a/accessible/generic/BaseAccessibles.cpp
+++ b/accessible/generic/BaseAccessibles.cpp
@@ -120,8 +120,7 @@ const LocalAccessible* LinkableAccessible::ActionWalk(bool* aIsLink,
}
KeyBinding LinkableAccessible::AccessKey() const {
- if (const LocalAccessible* actionAcc =
- const_cast<LinkableAccessible*>(this)->ActionWalk()) {
+ if (const LocalAccessible* actionAcc = ActionWalk()) {
return actionAcc->AccessKey();
}