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:
jwalden%mit.edu
2007-07-08 07:08:56 +00:00
parent 06346e6980
commit dda6ff3c99
969 changed files with 5717 additions and 5758 deletions

View File

@@ -416,7 +416,7 @@ mozSqlResult::GetTarget(nsIRDFResource* aSource,
*_retval = nsnull;
nsVoidKey key(aSource);
Row* row = NS_STATIC_CAST(Row*, mSources.Get(&key));
Row* row = static_cast<Row*>(mSources.Get(&key));
if (! row)
return NS_RDF_NO_VALUE;
@@ -543,7 +543,7 @@ mozSqlResult::HasAssertion(nsIRDFResource* aSource,
aProperty == kNC_Child &&
aTruthValue) {
nsVoidKey key(aTarget);
Row* row = NS_STATIC_CAST(Row*, mSources.Get(&key));
Row* row = static_cast<Row*>(mSources.Get(&key));
if (row)
*_retval = PR_TRUE;
}

View File

@@ -374,7 +374,7 @@ mozSqlService::GetConnection(nsIRDFResource* aAlias, mozISqlConnection **_retval
nsCOMPtr<mozISqlConnection> conn;
if (mConnectionCache) {
weakRef = getter_AddRefs(NS_STATIC_CAST(nsIWeakReference*, mConnectionCache->Get(&key)));
weakRef = getter_AddRefs(static_cast<nsIWeakReference*>(mConnectionCache->Get(&key)));
if (weakRef) {
conn = do_QueryReferent(weakRef);
if (conn)