bug 517977: require actor impls to override AllocPFoo/DeallocPFoo instead of PFooConstructor/PFooDestructor

This commit is contained in:
Chris Jones
2009-09-22 12:31:11 -05:00
parent 4220fb4b47
commit 4e37ff3dba
21 changed files with 199 additions and 185 deletions

View File

@@ -43,14 +43,14 @@ using mozilla::ipc::TestShellCommandParent;
using mozilla::ipc::PTestShellCommandParent;
PTestShellCommandParent*
TestShellParent::PTestShellCommandConstructor(const nsString& aCommand)
TestShellParent::AllocPTestShellCommand(const nsString& aCommand)
{
return new TestShellCommandParent();
}
bool
TestShellParent::PTestShellCommandDestructor(PTestShellCommandParent* aActor,
const nsString& aResponse)
TestShellParent::DeallocPTestShellCommand(PTestShellCommandParent* aActor,
const nsString& aResponse)
{
delete aActor;
return true;