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

@@ -112,8 +112,8 @@ public:
: mIndex(0)
{
JNIEnv* env = GetJNIEnv();
mJavaFileArray = NS_STATIC_CAST(jobjectArray,
env->NewGlobalRef(aJavaFileArray));
mJavaFileArray = static_cast<jobjectArray>
(env->NewGlobalRef(aJavaFileArray));
mArraySize = env->GetArrayLength(aJavaFileArray);
}
@@ -222,8 +222,8 @@ nsAppFileLocProviderProxy::GetFiles(const char* aProp,
if (NS_SUCCEEDED(rv)) {
// Parse return value
*aResult = new DirectoryEnumerator(NS_STATIC_CAST(jobjectArray,
javaFileArray));
*aResult = new DirectoryEnumerator(static_cast<jobjectArray>
(javaFileArray));
NS_ADDREF(*aResult);
return NS_OK;
}