Replace calls to new(). (#243)

* Replace all unavoidable uses of `new` with `std::make_unique` or
  `std::make_shared`.

* Fix some 80-column issues.
This commit is contained in:
Tom Ritchford
2015-08-10 11:37:59 -04:00
committed by Scott Schurr
parent ef51128270
commit d5193a776e
12 changed files with 35 additions and 41 deletions

View File

@@ -257,10 +257,9 @@ public:
assert (iter != m_jobData.end ());
if (iter == m_jobData.end ())
return LoadEvent::autoptr ();
return {};
return LoadEvent::autoptr (
new LoadEvent (iter-> second.load (), name, true));
return std::make_unique<LoadEvent> (iter-> second.load (), name, true);
}
void addLoadEvents (JobType t,