From d0084bddf1aa7b02b44ba0ad9c887df85eb3fa61 Mon Sep 17 00:00:00 2001 From: Jeff Muizelaar Date: Wed, 12 Aug 2009 14:54:54 -0400 Subject: [PATCH] Bug 510024. Remove unnecessary casts in nsAccessibleWrap.mm. r=davidb The type of currAcc.get() is already nsIAccessible* so there is no need for a further cast to nsIAccessible* --- accessible/src/mac/nsAccessibleWrap.mm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/accessible/src/mac/nsAccessibleWrap.mm b/accessible/src/mac/nsAccessibleWrap.mm index c38ef38dbf6d..66b33ed6441a 100644 --- a/accessible/src/mac/nsAccessibleWrap.mm +++ b/accessible/src/mac/nsAccessibleWrap.mm @@ -238,7 +238,7 @@ nsAccessibleWrap::GetUnignoredChildCount(PRBool aDeepCount) nsCOMPtr curAcc; while (NextChild(curAcc)) { - nsAccessibleWrap *childWrap = static_cast((nsIAccessible*)curAcc.get()); + nsAccessibleWrap *childWrap = static_cast(curAcc.get()); // if the current child is not ignored, count it. if (!childWrap->IsIgnored()) @@ -280,7 +280,7 @@ nsAccessibleWrap::GetUnignoredChildren(nsTArray > &aC return; while (NextChild(curAcc)) { - nsAccessibleWrap *childWrap = static_cast((nsIAccessible*)curAcc.get()); + nsAccessibleWrap *childWrap = static_cast(curAcc.get()); if (childWrap->IsIgnored()) { // element is ignored, so try adding its children as substitutes, if it has any. if (!nsAccUtils::MustPrune(childWrap)) { @@ -301,7 +301,7 @@ already_AddRefed nsAccessibleWrap::GetUnignoredParent() { nsCOMPtr parent(GetParent()); - nsAccessibleWrap *parentWrap = static_cast((nsIAccessible*)parent.get()); + nsAccessibleWrap *parentWrap = static_cast(parent.get()); if (!parentWrap) return nsnull;