whitespace cleanup (and remove null check before delete) r/sr=sspitzer, no bug

This commit is contained in:
bienvenu%netscape.com 2002-01-15 00:43:07 +00:00
Родитель 3a0858db1c
Коммит f55fdd94e4
1 изменённых файлов: 10 добавлений и 11 удалений

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

@ -1597,25 +1597,24 @@ imap_shell_cache_strcmp (const void *a, const void *b)
nsIMAPBodyShellCache::nsIMAPBodyShellCache()
{
m_shellHash = new nsHashtable(20); /* , XP_StringHash, imap_shell_cache_strcmp); */
m_shellList = new nsVoidArray();
m_shellHash = new nsHashtable(20); /* , XP_StringHash, imap_shell_cache_strcmp); */
m_shellList = new nsVoidArray();
}
/* static */ nsIMAPBodyShellCache *nsIMAPBodyShellCache::Create()
{
nsIMAPBodyShellCache *cache = new nsIMAPBodyShellCache();
if (!cache || !cache->m_shellHash || !cache->m_shellList)
return NULL;
nsIMAPBodyShellCache *cache = new nsIMAPBodyShellCache();
if (!cache || !cache->m_shellHash || !cache->m_shellList)
return NULL;
return cache;
return cache;
}
nsIMAPBodyShellCache::~nsIMAPBodyShellCache()
{
while (EjectEntry()) ;
if (m_shellHash)
delete m_shellHash;
delete m_shellList;
while (EjectEntry()) ;
delete m_shellHash;
delete m_shellList;
}
// We'll use an LRU scheme here.