Eliminate Newborn/NoAddRef (bug 5907, r=ds).

This commit is contained in:
David Anderson
2014-08-22 22:50:25 -07:00
parent 0cf8eb2854
commit 9267d0c803
7 changed files with 53 additions and 23 deletions
+1 -1
View File
@@ -383,7 +383,7 @@ bool ConCmdManager::AddAdminCommand(IPluginFunction *pFunction,
{
if (!m_CmdGrps.add(i, group))
return false;
i->value = NoAddRef(new CommandGroup());
i->value = new CommandGroup();
}
Ref<CommandGroup> cmdgroup = i->value;