summaryrefslogtreecommitdiff
path: root/src/main.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/main.cc
parent2e5352a1128da3ff4637561788a7da8e6b24ab9c (diff)
Use std::make_unique
Diffstat (limited to 'src/main.cc')
-rw-r--r--src/main.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.cc b/src/main.cc
index f259417..fdf2e61 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -223,9 +223,9 @@ public:
void connect(Args const* args) {
#if FAKE_MONITOR
- monitor_.reset(FakeMonitor::create(looper_));
+ monitor_ = FakeMonitor::create(looper_);
#else
- monitor_.reset(Monitor::create(looper_));
+ monitor_ = Monitor::create(looper_);
#endif
monitor_->add_observer(this);
monitor_->connect(args->arg("network", ""),
@@ -796,7 +796,7 @@ private:
void animate(Machine& machine) {
if (!animator_) return;
if (machine.animation) return;
- machine.animation.reset(new MachineAnimation(&machine));
+ machine.animation = std::make_unique<MachineAnimation>(&machine);
animator_->start(machine.animation, &machine);
}