r=darin, sr=alecf
Code from Alfred Kayser - optimization in nsJarChannel
This commit is contained in:
mkaply%us.ibm.com 2003-09-11 16:45:50 +00:00
Родитель bf2306465f
Коммит 191bf2c1f6
2 изменённых файлов: 4 добавлений и 10 удалений

Просмотреть файл

@ -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;
}