From 2399fba323422eae808a85119a8aeaaa1605626f Mon Sep 17 00:00:00 2001 From: Mats Palmgren Date: Sat, 26 May 2012 02:43:44 +0200 Subject: [PATCH] Bug 719117 - Use down-cast instead of separate member with correct type. r=roc --- content/base/src/nsObjectLoadingContent.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/content/base/src/nsObjectLoadingContent.cpp b/content/base/src/nsObjectLoadingContent.cpp index d649c557358..b7d09eb7594 100644 --- a/content/base/src/nsObjectLoadingContent.cpp +++ b/content/base/src/nsObjectLoadingContent.cpp @@ -320,7 +320,6 @@ public: nsStopPluginRunnable(nsPluginInstanceOwner* aInstanceOwner, nsObjectLoadingContent* aContent) : mInstanceOwner(aInstanceOwner) - , mContentKungFuDeathGrip(aContent) , mContent(aContent) { NS_ASSERTION(aInstanceOwner, "need an owner"); @@ -336,8 +335,7 @@ public: private: nsCOMPtr mTimer; nsRefPtr mInstanceOwner; - nsCOMPtr mContentKungFuDeathGrip; - nsObjectLoadingContent* mContent; + nsCOMPtr mContent; }; NS_IMPL_ISUPPORTS_INHERITED1(nsStopPluginRunnable, nsRunnable, nsITimerCallback) @@ -376,7 +374,8 @@ nsStopPluginRunnable::Run() mTimer = nsnull; - mContent->DoStopPlugin(mInstanceOwner, false, true); + static_cast(mContent.get())-> + DoStopPlugin(mInstanceOwner, false, true); return NS_OK; }