core/video_core: Use in-place construction where possible

This commit is contained in:
Lioncash 2015-02-17 17:42:28 -05:00
parent 12181c8a64
commit 5d2366e1e9
3 changed files with 5 additions and 5 deletions

View file

@ -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;
}