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:
@@ -295,7 +295,7 @@ nsWebShellWindow::HandleEvent(nsGUIEvent *aEvent)
|
||||
|
||||
aEvent->widget->GetClientData(data);
|
||||
if (data != nsnull) {
|
||||
eventWindow = NS_REINTERPRET_CAST(nsWebShellWindow *, data);
|
||||
eventWindow = reinterpret_cast<nsWebShellWindow *>(data);
|
||||
docShell = eventWindow->mDocShell;
|
||||
}
|
||||
}
|
||||
@@ -549,7 +549,7 @@ nsWebShellWindow::SetPersistenceTimer(PRUint32 aDirtyFlags)
|
||||
void
|
||||
nsWebShellWindow::FirePersistenceTimer(nsITimer *aTimer, void *aClosure)
|
||||
{
|
||||
nsWebShellWindow *win = NS_STATIC_CAST(nsWebShellWindow *, aClosure);
|
||||
nsWebShellWindow *win = static_cast<nsWebShellWindow *>(aClosure);
|
||||
if (!win->mSPTimerLock)
|
||||
return;
|
||||
PR_Lock(win->mSPTimerLock);
|
||||
|
||||
Reference in New Issue
Block a user