Bug 348748 - Replace all instances of NS_STATIC_CAST and friends with C++ casts (and simultaneously bitrot nearly every patch in existence). r=bsmedberg on the script that did this. Tune in next time for Macro Wars: Episode II: Attack on the LL_* Macros.
git-svn-id: svn://10.0.0.236/trunk@229504 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -327,7 +327,7 @@ nsSpatialNavigation::Init(nsIDOMWindow *aWindow)
|
||||
return rv;
|
||||
|
||||
target->AddGroupedEventListener(NS_LITERAL_STRING("keypress"),
|
||||
NS_STATIC_CAST(nsIDOMKeyListener*, this),
|
||||
static_cast<nsIDOMKeyListener*>(this),
|
||||
PR_FALSE,
|
||||
systemGroup);
|
||||
|
||||
@@ -344,7 +344,7 @@ nsSpatialNavigation::Shutdown()
|
||||
return rv;
|
||||
|
||||
target->RemoveGroupedEventListener(NS_LITERAL_STRING("keypress"),
|
||||
NS_STATIC_CAST(nsIDOMKeyListener*, this),
|
||||
static_cast<nsIDOMKeyListener*>(this),
|
||||
PR_FALSE,
|
||||
systemGroup);
|
||||
mTopWindow = nsnull;
|
||||
@@ -420,7 +420,7 @@ void DoTraversal(int aDirection,
|
||||
|
||||
nsISupports* currentItem;
|
||||
aFrameTraversal->CurrentItem(¤tItem);
|
||||
frame = NS_STATIC_CAST(nsIFrame*, currentItem);
|
||||
frame = static_cast<nsIFrame*>(currentItem);
|
||||
|
||||
if (!frame)
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user