replaced all unique_ptr.reset calls with std::make_unique
This commit is contained in:
parent
e5e3fc02b8
commit
8eb947a223
7 changed files with 45 additions and 39 deletions
|
|
@ -98,7 +98,7 @@ void SystemTask::Work() {
|
|||
|
||||
heartRateSensor.Init();
|
||||
heartRateSensor.Disable();
|
||||
heartRateApp.reset(new Pinetime::Applications::HeartRateTask(heartRateSensor, heartRateController));
|
||||
heartRateApp = std::make_unique<Pinetime::Applications::HeartRateTask>(heartRateSensor, heartRateController);
|
||||
heartRateApp->Start();
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue