Bug 996785 - Move CPOW wrapper answering code (r=mrbkap)

This commit is contained in:
Bill McCloskey
2014-05-16 16:40:36 -07:00
parent a6ad990683
commit 6f8d4ab2d7
10 changed files with 748 additions and 596 deletions

View File

@@ -23,6 +23,8 @@ IdToObjectMap::IdToObjectMap()
bool
IdToObjectMap::init()
{
if (table_.initialized())
return true;
return table_.init(32);
}
@@ -73,7 +75,9 @@ ObjectToIdMap::~ObjectToIdMap()
bool
ObjectToIdMap::init()
{
MOZ_ASSERT(!table_);
if (table_)
return true;
table_ = new Table(SystemAllocPolicy());
return table_ && table_->init(32);
}