History

missed some shared pointer construction in Application

Heather Anderson committed 5 years ago

Commit bee33741 parent bcce9a21 file · +3 −3Browse files

Showing the changes to interface/src/Application.cpp (1 of 1 file). Show all

Unified · Split

interface/src/Application.cpp+3−3
@@ -1033,9 +1033,9 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo · 1032 unmodified lines
10331033 _logger(new FileLogger(this)),
10341034 #endif
10351035 _previousSessionCrashed(setupEssentials(argc, argv, runningMarkerExisted)),
1036− _entitySimulation(new PhysicalEntitySimulation()),
1037− _physicsEngine(new PhysicsEngine(Vectors::ZERO)),
1038− _entityClipboard(new EntityTree()),
1036+ _entitySimulation(std::make_shared<PhysicalEntitySimulation>()),
1037+ _physicsEngine(std::make_shared<PhysicsEngine>(Vectors::ZERO)),
1038+ _entityClipboard(std::make_shared<EntityTree>()),
10391039 _previousScriptLocation("LastScriptLocation", DESKTOP_LOCATION),
10401040 _fieldOfView("fieldOfView", DEFAULT_FIELD_OF_VIEW_DEGREES),
10411041 _hmdTabletScale("hmdTabletScale", DEFAULT_HMD_TABLET_SCALE_PERCENT),