core/video_core: Use in-place construction where possible
This commit is contained in:
parent
12181c8a64
commit
5d2366e1e9
3 changed files with 5 additions and 5 deletions
|
@ -129,7 +129,7 @@ static void FreeTsEvent(Event* event) {
|
|||
}
|
||||
|
||||
int RegisterEvent(const char* name, TimedCallback callback) {
|
||||
event_types.push_back(EventType(callback, name));
|
||||
event_types.emplace_back(callback, name);
|
||||
return (int)event_types.size() - 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue