From e1a427f68fcaec6ba0c78c1df67d783fca461f48 Mon Sep 17 00:00:00 2001 From: "bzbarsky%mit.edu" Date: Wed, 16 Aug 2006 05:21:44 +0000 Subject: [PATCH] Fix build bustage. Bug 302186. git-svn-id: svn://10.0.0.236/trunk@207547 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/content/html/content/src/nsGenericHTMLElement.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mozilla/content/html/content/src/nsGenericHTMLElement.cpp b/mozilla/content/html/content/src/nsGenericHTMLElement.cpp index 635fc28d13d..6e09bcd1e5e 100644 --- a/mozilla/content/html/content/src/nsGenericHTMLElement.cpp +++ b/mozilla/content/html/content/src/nsGenericHTMLElement.cpp @@ -3349,7 +3349,10 @@ nsGenericHTMLFormElement::IntrinsicState() const } } - if (mForm && mForm->GetDefaultSubmitElement() == this) { + if (mForm && + // XXXbz Need the cast to make VC++6 happy. + NS_STATIC_CAST(const nsIFormControl*, + mForm->GetDefaultSubmitElement()) == this) { NS_ASSERTION(IsSubmitControl(), "Default submit element that isn't a submit control."); // We are the default submit element (:default)