зеркало из https://github.com/mozilla/pjs.git
r=darin, sr=alecf Code from Alfred Kayser - optimization in nsJarChannel
This commit is contained in:
Родитель
bf2306465f
Коммит
191bf2c1f6
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче