зеркало из https://github.com/mozilla/pjs.git
Bug 620357 - Fix unused variable warning in nsZipReaderCache::GetInnerZip; r=taras a=mossop
--HG-- extra : rebase_source : 2135f43636d066c09e2f67ac3009b45be5cfbcf2
This commit is contained in:
Родитель
9d84ad865a
Коммит
b6feb9bc18
|
@ -1195,8 +1195,6 @@ nsZipReaderCache::GetInnerZip(nsIFile* zipFile, const char *entry,
|
|||
}
|
||||
else {
|
||||
zip = new nsJAR();
|
||||
if (zip == nsnull)
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
NS_ADDREF(zip);
|
||||
zip->SetZipReaderCache(this);
|
||||
|
||||
|
@ -1205,8 +1203,10 @@ nsZipReaderCache::GetInnerZip(nsIFile* zipFile, const char *entry,
|
|||
NS_RELEASE(zip);
|
||||
return rv;
|
||||
}
|
||||
|
||||
PRBool collision = mZips.Put(&key, static_cast<nsIZipReader*>(zip)); // AddRefs to 2
|
||||
#ifdef DEBUG
|
||||
PRBool collision =
|
||||
#endif
|
||||
mZips.Put(&key, static_cast<nsIZipReader*>(zip)); // AddRefs to 2
|
||||
NS_ASSERTION(!collision, "horked");
|
||||
}
|
||||
*result = zip;
|
||||
|
|
Загрузка…
Ссылка в новой задаче