diff options
author | JF002 <JF002@users.noreply.github.com> | 2021-03-31 20:33:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-31 20:33:37 +0200 |
commit | 58a2d000c4d49d96121894d6dd6bb861d7564bea (patch) | |
tree | e4a941aa36b6db254426bed309c48dd42d79dfd5 /src/displayapp/screens/ApplicationList.cpp | |
parent | 136d4bb85e36777f0f9877fd065476ba1c02ca90 (diff) | |
parent | 8eb947a2239d431146de9295e281ee0163fa20e2 (diff) |
Merge pull request #238 from nscooling/make_unique
Resolved C++14 Cmake build issues so correctly building to C99/C++14
Diffstat (limited to 'src/displayapp/screens/ApplicationList.cpp')
-rw-r--r-- | src/displayapp/screens/ApplicationList.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/displayapp/screens/ApplicationList.cpp b/src/displayapp/screens/ApplicationList.cpp index dd9cb2a8..60039045 100644 --- a/src/displayapp/screens/ApplicationList.cpp +++ b/src/displayapp/screens/ApplicationList.cpp @@ -56,7 +56,7 @@ std::unique_ptr<Screen> ApplicationList::CreateScreen1() { }; - return std::unique_ptr<Screen>(new Screens::Tile(0, app, settingsController, applications)); + return std::make_unique<Screens::Tile>(0, app, settingsController, applications); } std::unique_ptr<Screen> ApplicationList::CreateScreen2() { @@ -70,7 +70,7 @@ std::unique_ptr<Screen> ApplicationList::CreateScreen2() { } }; - return std::unique_ptr<Screen>(new Screens::Tile(1, app, settingsController, applications)); + return std::make_unique<Screens::Tile>(1, app, settingsController, applications); } std::unique_ptr<Screen> ApplicationList::CreateScreen3() { @@ -84,6 +84,6 @@ std::unique_ptr<Screen> ApplicationList::CreateScreen3() { } }; - return std::unique_ptr<Screen>(new Screens::Tile(2, app, settingsController, applications)); + return std::make_unique<Screens::Tile>(2, app, settingsController, applications); } |