Bug 1446568: Remove an unneeded cast. r=smaug
MozReview-Commit-ID: ILtm9ybRwJ7
--- a/dom/base/nsDocument.cpp
+++ b/dom/base/nsDocument.cpp
@@ -9935,17 +9935,17 @@ nsIDocument::WarnOnceAbout(DeprecatedOpe
MOZ_ASSERT(NS_IsMainThread());
if (HasWarnedAbout(aOperation)) {
return;
}
mDeprecationWarnedAbout[aOperation] = true;
// Don't count deprecated operations for about pages since those pages
// are almost in our control, and we always need to remove uses there
// before we remove the operation itself anyway.
- if (!static_cast<const nsDocument*>(this)->IsAboutPage()) {
+ if (!IsAboutPage()) {
const_cast<nsIDocument*>(this)->
SetDocumentAndPageUseCounter(OperationToUseCounter(aOperation));
}
uint32_t flags = asError ? nsIScriptError::errorFlag
: nsIScriptError::warningFlag;
nsContentUtils::ReportToConsole(flags,
NS_LITERAL_CSTRING("DOM Core"), this,
nsContentUtils::eDOM_PROPERTIES,