Simplify NativeEntry state (bug 5852 part 3, r=ds).

--HG--
extra : rebase_source : e80ed1c3b3af0b48fff6632eb131ca534a2c2885
This commit is contained in:
David Anderson
2013-08-30 10:14:18 -07:00
parent 140436c2cb
commit 3da646f913
5 changed files with 73 additions and 59 deletions
+2 -2
View File
@@ -97,7 +97,7 @@ void CNativeOwner::UnbindWeakRef(const WeakNative & ref)
*/
else
{
native->pfn = ref.entry->func;
native->pfn = ref.entry->func();
}
}
}
@@ -125,7 +125,7 @@ void CNativeOwner::DropEverything()
List<NativeEntry *>::iterator ntv_iter = m_Natives.begin();
while (ntv_iter != m_Natives.end())
{
g_ShareSys.ClearNativeFromCache(this, (*ntv_iter)->name);
g_ShareSys.ClearNativeFromCache(this, (*ntv_iter)->name());
ntv_iter = m_Natives.erase(ntv_iter);
}
}