r=darin, sr=alecf
Code from Alfred Kayser - optimization in nsJarChannel


git-svn-id: svn://10.0.0.236/trunk@146774 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mkaply%us.ibm.com
2003-09-11 16:45:50 +00:00
parent 52320a3d7d
commit cc0b9d43af
2 changed files with 4 additions and 10 deletions

View File

@@ -119,11 +119,8 @@ nsJARInputThunk::EnsureJarStream()
getter_AddRefs(mJarStream));
if (NS_FAILED(rv)) return rv;
// ask the zip entry for the content length
nsCOMPtr<nsIZipEntry> entry;
mJarReader->GetEntry(mJarEntry.get(), getter_AddRefs(entry));
if (entry)
entry->GetRealSize((PRUint32 *) &mContentLength);
// ask the JarStream for the content length
mJarStream->Available((PRUint32 *) &mContentLength);
return NS_OK;
}

View File

@@ -119,11 +119,8 @@ nsJARInputThunk::EnsureJarStream()
getter_AddRefs(mJarStream));
if (NS_FAILED(rv)) return rv;
// ask the zip entry for the content length
nsCOMPtr<nsIZipEntry> entry;
mJarReader->GetEntry(mJarEntry.get(), getter_AddRefs(entry));
if (entry)
entry->GetRealSize((PRUint32 *) &mContentLength);
// ask the JarStream for the content length
mJarStream->Available((PRUint32 *) &mContentLength);
return NS_OK;
}