зеркало из https://github.com/mozilla/gecko-dev.git
Misc. changes.
This commit is contained in:
Родитель
add3b6463e
Коммит
16e7a2b00a
|
@ -22,10 +22,10 @@ MODULE=cache
|
|||
|
||||
EXPORTS=nsCacheObject.h nsMemModule.h nsCacheManager.h \
|
||||
nsDiskModule.h nsCacheModule.h nsMemCacheObject.h \
|
||||
nsCachePref.h nsCacheBkgThd.h nsBkgThread.h \
|
||||
CacheStubs.h nsCacheIterator.h nsIterator.h \
|
||||
nsCachePref.h nsCacheBkgThd.h nsBkgThread.h \
|
||||
CacheStubs.h nsCacheIterator.h nsIterator.h \
|
||||
nsMonitorable.h nsStream.h nsFileStream.h \
|
||||
nsMemStream.h nsEnumeration.h \
|
||||
nsMemStream.h nsEnumeration.h \
|
||||
$(NULL)
|
||||
|
||||
include <$(DEPTH)\config\rules.mak>
|
||||
|
|
|
@ -174,7 +174,7 @@ inline void nsCacheModule::NextModule(nsCacheModule* pNext)
|
|||
{
|
||||
/* ERROR */
|
||||
delete m_pNext; //Worst case.
|
||||
|
||||
m_pNext = 0;
|
||||
}
|
||||
m_pNext = pNext;
|
||||
}
|
||||
|
|
|
@ -51,7 +51,7 @@ OBJS = \
|
|||
.\$(OBJDIR)\nsBkgThread.obj \
|
||||
.\$(OBJDIR)\nsCacheBkgThd.obj \
|
||||
.\$(OBJDIR)\CacheStubs.obj \
|
||||
.\$(OBJDIR)\nsFileStream.obj \
|
||||
.\$(OBJDIR)\nsFileStream.obj \
|
||||
.\$(OBJDIR)\nsMemStream.obj \
|
||||
$(NULL)
|
||||
|
||||
|
|
|
@ -271,9 +271,10 @@ PRUint32
|
|||
NumberOfObjects(void)
|
||||
{
|
||||
PRUint32 objs = 0;
|
||||
for (int i = TheManager.Entries()-1; i-- ; i>=0)
|
||||
int i = TheManager.Entries();
|
||||
while (i>0)
|
||||
{
|
||||
objs += TheManager.GetModule(i)->Entries();
|
||||
objs += TheManager.GetModule(--i)->Entries();
|
||||
}
|
||||
return objs;
|
||||
}
|
|
@ -40,7 +40,7 @@ nsCachePref::nsCachePref(void):
|
|||
//Read all the stuff from pref here.
|
||||
//If this changes to nsPref, here is all that needs to be changed.
|
||||
//PRUint32 nTemp;
|
||||
//PREF_GetIntPref("browser.cache.memory_cache_size",&nTemp);
|
||||
//PREF_GetIntPref("browser.cache.memory_cache_size",&nTemp);
|
||||
//*1024
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче