Bug 952170 - Remove unnecessary static_cast. r=smaug
authorKartikaya Gupta <kgupta@mozilla.com>
Mon, 06 Jan 2014 12:25:56 -0500
changeset 162194 343ac499c99319bfc1f2b678db771d555578da17
parent 162193 8ffb10cf61383bdda9dad5d70a172a022734396b
child 162195 bf2f2356f3b6b2848b2ba82a8e094fa3c8ccfbbb
push idunknown
push userunknown
push dateunknown
reviewerssmaug
bugs952170
milestone29.0a1
Bug 952170 - Remove unnecessary static_cast. r=smaug
dom/ipc/TabChild.cpp
--- a/dom/ipc/TabChild.cpp
+++ b/dom/ipc/TabChild.cpp
@@ -1771,17 +1771,17 @@ TabChild::UpdateTapState(const WidgetTou
       return;
     }
     if (aStatus == nsEventStatus_eConsumeNoDefault ||
         nsIPresShell::gPreventMouseEvents ||
         aEvent.mFlags.mMultipleActionsPrevented) {
       return;
     }
 
-    Touch* touch = static_cast<Touch*>(aEvent.touches[0].get());
+    Touch* touch = aEvent.touches[0];
     mGestureDownPoint = LayoutDevicePoint(touch->mRefPoint.x, touch->mRefPoint.y);
     mActivePointerId = touch->mIdentifier;
     if (sClickHoldContextMenusEnabled) {
       MOZ_ASSERT(!mTapHoldTimer);
       mTapHoldTimer = NewRunnableMethod(this,
                                         &TabChild::FireContextMenuEvent);
       MessageLoop::current()->PostDelayedTask(FROM_HERE, mTapHoldTimer,
                                               sContextMenuDelayMs);