removing dynamically allocated hashtable in xpcom where possible. r=alecf, b=204634

git-svn-id: svn://10.0.0.236/trunk@142864 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dougt%meer.net
2003-05-23 22:23:10 +00:00
parent 153f4da3a7
commit 219c826785
7 changed files with 25 additions and 55 deletions

View File

@@ -144,11 +144,6 @@ PRBool nsDll::Load(void)
// on the dependent libraries with the assumption that the
// component library holds a reference via the OS so loader.
if (!m_loader->mLoadedDependentLibs) {
NS_ERROR("huh? no dependent libs");
return PR_TRUE;
}
#if defined(XP_UNIX)
nsCOMPtr<nsIComponentLoaderManager> manager = do_QueryInterface(m_loader->mCompMgr);
if (!manager)
@@ -188,12 +183,12 @@ PRBool nsDll::Load(void)
while (token!=nsnull)
{
nsCStringKey key(token);
if (m_loader->mLoadedDependentLibs->Get(&key)) {
if (m_loader.mLoadedDependentLibs->Get(&key)) {
token = nsCRT::strtok(newStr, " ", &newStr);
continue;
}
m_loader->mLoadedDependentLibs->Put(&key, (void*)1);
m_loader.mLoadedDependentLibs->Put(&key, (void*)1);
nsXPIDLCString libpath;
file->SetNativeLeafName(nsDependentCString(token));