mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
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:
committed by
Scott Schurr
parent
ef51128270
commit
d5193a776e
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user