mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2026-01-28 14:33:42 +08:00
core/video_core: Use in-place construction where possible
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user