summaryrefslogtreecommitdiff
path: root/src/fake_monitor.cc
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@opera.com>2017-10-31 15:01:57 +0100
committerJoel Klinghed <the_jk@opera.com>2017-10-31 15:01:57 +0100
commit38140372d8c8dd32267943d5d79b2ce2c0a032fb (patch)
tree0e2555e591092f934e05451ef4a6df18c5ddc739 /src/fake_monitor.cc
parent2e5352a1128da3ff4637561788a7da8e6b24ab9c (diff)
Use std::make_unique
Diffstat (limited to 'src/fake_monitor.cc')
-rw-r--r--src/fake_monitor.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/fake_monitor.cc b/src/fake_monitor.cc
index d2537ab..a444476 100644
--- a/src/fake_monitor.cc
+++ b/src/fake_monitor.cc
@@ -207,6 +207,7 @@ private:
} // namespace
// static
-Monitor* FakeMonitor::create(std::shared_ptr<Looper> const& looper) {
- return new FakeMonitorImpl(looper);
+std::unique_ptr<Monitor> FakeMonitor::create(
+ std::shared_ptr<Looper> const& looper) {
+ return std::make_unique<FakeMonitorImpl>(looper);
}