From 837ded8434ebe7048907008723929ecee2c9f83a Mon Sep 17 00:00:00 2001 From: Pixel Date: Fri, 6 Apr 2012 11:52:48 -0700 Subject: Better way to write these... --- tests/test-Http.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/test-Http.cc b/tests/test-Http.cc index f54fba0..c387168 100644 --- a/tests/test-Http.cc +++ b/tests/test-Http.cc @@ -106,9 +106,9 @@ void MainTask::Do() { bool stop = false; HttpServer * s = new HttpServer(); - (new TestAction())->registerMe(s); - (new TestFailure())->registerMe(s); - (new StopAction(event, stop))->registerMe(s); + s->registerAction(new TestAction()); + s->registerAction(new TestFailure()); + s->registerAction(new StopAction(event, stop)); s->setPort(8080); s->setLocal("localhost"); s->start(); -- cgit v1.2.3