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:
@@ -50,13 +50,13 @@ typedef nsTArray< nsRefPtr<nsThread> > nsThreadArray;
|
||||
PR_STATIC_CALLBACK(void)
|
||||
ReleaseObject(void *data)
|
||||
{
|
||||
NS_STATIC_CAST(nsISupports *, data)->Release();
|
||||
static_cast<nsISupports *>(data)->Release();
|
||||
}
|
||||
|
||||
PR_STATIC_CALLBACK(PLDHashOperator)
|
||||
AppendAndRemoveThread(const void *key, nsRefPtr<nsThread> &thread, void *arg)
|
||||
{
|
||||
nsThreadArray *threads = NS_STATIC_CAST(nsThreadArray *, arg);
|
||||
nsThreadArray *threads = static_cast<nsThreadArray *>(arg);
|
||||
threads->AppendElement(thread);
|
||||
return PL_DHASH_REMOVE;
|
||||
}
|
||||
@@ -198,7 +198,7 @@ nsThreadManager::GetCurrentThread()
|
||||
// read thread local storage
|
||||
void *data = PR_GetThreadPrivate(mCurThreadIndex);
|
||||
if (data)
|
||||
return NS_STATIC_CAST(nsThread *, data);
|
||||
return static_cast<nsThread *>(data);
|
||||
|
||||
// OK, that's fine. We'll dynamically create one :-)
|
||||
nsRefPtr<nsThread> thread = new nsThread();
|
||||
|
||||
Reference in New Issue
Block a user