Bug #203344
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:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user