Linkgraph: Refactoring to avoid manual deletes.

This commit is contained in:
Jonathan G Rennison
2017-02-08 19:47:37 +00:00
parent 28211c21fc
commit 2080daab8d
2 changed files with 7 additions and 10 deletions

View File

@@ -46,7 +46,7 @@ private:
friend const SaveLoad *GetLinkGraphScheduleDesc();
protected:
ComponentHandler *handlers[6]; ///< Handlers to be run for each job.
std::unique_ptr<ComponentHandler> handlers[6]; ///< Handlers to be run for each job.
GraphList schedule; ///< Queue for new jobs.
JobList running; ///< Currently running jobs.