diff options
| author | 2015-02-17 17:42:28 -0500 | |
|---|---|---|
| committer | 2015-02-17 17:57:23 -0500 | |
| commit | 5d2366e1e9adaa5b4275127dff5005f2ef2f8ff8 (patch) | |
| tree | fbe9bc5f148ee6c5e0abf6a3c284f65d88d7731c /src/core/core_timing.cpp | |
| parent | Merge pull request #529 from Subv/master (diff) | |
| download | yuzu-5d2366e1e9adaa5b4275127dff5005f2ef2f8ff8.tar.gz yuzu-5d2366e1e9adaa5b4275127dff5005f2ef2f8ff8.tar.xz yuzu-5d2366e1e9adaa5b4275127dff5005f2ef2f8ff8.zip | |
core/video_core: Use in-place construction where possible
Diffstat (limited to 'src/core/core_timing.cpp')
| -rw-r--r-- | src/core/core_timing.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/core_timing.cpp b/src/core/core_timing.cpp index 604875160..cabe2a074 100644 --- a/src/core/core_timing.cpp +++ b/src/core/core_timing.cpp | |||
| @@ -129,7 +129,7 @@ static void FreeTsEvent(Event* event) { | |||
| 129 | } | 129 | } |
| 130 | 130 | ||
| 131 | int RegisterEvent(const char* name, TimedCallback callback) { | 131 | int RegisterEvent(const char* name, TimedCallback callback) { |
| 132 | event_types.push_back(EventType(callback, name)); | 132 | event_types.emplace_back(callback, name); |
| 133 | return (int)event_types.size() - 1; | 133 | return (int)event_types.size() - 1; |
| 134 | } | 134 | } |
| 135 | 135 | ||