| Index: base/message_loop_unittest.cc
|
| diff --git a/base/message_loop_unittest.cc b/base/message_loop_unittest.cc
|
| index 8cce8ea5217fb6405f4b6895dfef6c8529dd9236..a3c330728ea2ef5d38d769cf13674ce60faf88ce 100644
|
| --- a/base/message_loop_unittest.cc
|
| +++ b/base/message_loop_unittest.cc
|
| @@ -95,7 +95,7 @@ void RunTest_PostTask(MessageLoop::Type message_loop_type) {
|
| MessageLoop loop(message_loop_type);
|
|
|
| // Add tests to message loop
|
| - scoped_refptr<Foo> foo = new Foo();
|
| + scoped_refptr<Foo> foo(new Foo());
|
| std::string a("a"), b("b"), c("c"), d("d");
|
| MessageLoop::current()->PostTask(FROM_HERE, NewRunnableMethod(
|
| foo.get(), &Foo::Test0));
|
| @@ -111,7 +111,7 @@ void RunTest_PostTask(MessageLoop::Type message_loop_type) {
|
| foo.get(), &Foo::Test2Mixed, a, &d));
|
|
|
| // After all tests, post a message that will shut down the message loop
|
| - scoped_refptr<QuitMsgLoop> quit = new QuitMsgLoop();
|
| + scoped_refptr<QuitMsgLoop> quit(new QuitMsgLoop());
|
| MessageLoop::current()->PostTask(FROM_HERE, NewRunnableMethod(
|
| quit.get(), &QuitMsgLoop::QuitNow));
|
|
|
| @@ -126,7 +126,7 @@ void RunTest_PostTask_SEH(MessageLoop::Type message_loop_type) {
|
| MessageLoop loop(message_loop_type);
|
|
|
| // Add tests to message loop
|
| - scoped_refptr<Foo> foo = new Foo();
|
| + scoped_refptr<Foo> foo(new Foo());
|
| std::string a("a"), b("b"), c("c"), d("d");
|
| MessageLoop::current()->PostTask(FROM_HERE, NewRunnableMethod(
|
| foo.get(), &Foo::Test0));
|
| @@ -142,7 +142,7 @@ void RunTest_PostTask_SEH(MessageLoop::Type message_loop_type) {
|
| foo.get(), &Foo::Test2Mixed, a, &d));
|
|
|
| // After all tests, post a message that will shut down the message loop
|
| - scoped_refptr<QuitMsgLoop> quit = new QuitMsgLoop();
|
| + scoped_refptr<QuitMsgLoop> quit(new QuitMsgLoop());
|
| MessageLoop::current()->PostTask(FROM_HERE, NewRunnableMethod(
|
| quit.get(), &QuitMsgLoop::QuitNow));
|
|
|
|
|