if (!mLoadingDocTable.mHashTable.ops) mLoadingDocTable.Init(16);  StringToObjectEntry* entry = mLoadingDocTable.AddEntry(aURL); if (!entry) return NS_ERROR_OUT_OF_MEMORY; entry->SetValue(aListener);
NS_PRECONDITION(aListener, "Must have a non-null listener!");  NS_ENSURE_TRUE(mLoadingDocTable.IsInitialized() || mLoadingDocTable.Init(16), NS_ERROR_OUT_OF_MEMORY);  NS_ENSURE_TRUE(mLoadingDocTable.Put(aURL, aListener), NS_ERROR_OUT_OF_MEMORY);
nsBindingManager::PutLoadingDocListener(const nsCString& aURL, nsIStreamListener* aListener){  if (!mLoadingDocTable.mHashTable.ops)    mLoadingDocTable.Init(16);  StringToObjectEntry* entry = mLoadingDocTable.AddEntry(aURL);  if (!entry) return NS_ERROR_OUT_OF_MEMORY;  entry->SetValue(aListener);  return NS_OK;}