Merge pull request #580 from lioncash/emplace

core/video_core: Use in-place construction where possible
This commit is contained in:
bunnei 2015-02-18 17:36:34 -05:00
commit ec8f2210e3
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;
}