| Index: examples/indirect_service/integer_service.cc
|
| diff --git a/examples/indirect_service/integer_service.cc b/examples/indirect_service/integer_service.cc
|
| index 8399eb0ae253c1ccceb1d0388516f75a9a12dae7..42f718f1a4da8ab4b2bec1647b214d4de1cb82d2 100644
|
| --- a/examples/indirect_service/integer_service.cc
|
| +++ b/examples/indirect_service/integer_service.cc
|
| @@ -2,6 +2,8 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| +#include <memory>
|
| +
|
| #include "examples/indirect_service/indirect_service_demo.mojom.h"
|
| #include "mojo/public/c/system/main.h"
|
| #include "mojo/public/cpp/application/application_connection.h"
|
| @@ -48,7 +50,9 @@ class IntegerServiceAppDelegate : public ApplicationDelegate,
|
| } // namespace mojo
|
|
|
| MojoResult MojoMain(MojoHandle application_request) {
|
| - mojo::ApplicationRunner runner(new mojo::examples::IntegerServiceAppDelegate);
|
| + mojo::ApplicationRunner runner(
|
| + std::unique_ptr<mojo::examples::IntegerServiceAppDelegate>(
|
| + new mojo::examples::IntegerServiceAppDelegate));
|
| return runner.Run(application_request);
|
| }
|
|
|
|
|