diff options
| author | 2015-02-17 17:42:28 -0500 | |
|---|---|---|
| committer | 2015-02-17 17:57:23 -0500 | |
| commit | 5d2366e1e9adaa5b4275127dff5005f2ef2f8ff8 (patch) | |
| tree | fbe9bc5f148ee6c5e0abf6a3c284f65d88d7731c /src/video_core/gpu_debugger.h | |
| 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/video_core/gpu_debugger.h')
| -rw-r--r-- | src/video_core/gpu_debugger.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/gpu_debugger.h b/src/video_core/gpu_debugger.h index 03641d93b..48ac269e3 100644 --- a/src/video_core/gpu_debugger.h +++ b/src/video_core/gpu_debugger.h | |||
| @@ -58,8 +58,8 @@ public: | |||
| 58 | if (observers.empty()) | 58 | if (observers.empty()) |
| 59 | return; | 59 | return; |
| 60 | 60 | ||
| 61 | gx_command_history.push_back(GSP_GPU::Command()); | 61 | gx_command_history.emplace_back(); |
| 62 | GSP_GPU::Command& cmd = gx_command_history[gx_command_history.size()-1]; | 62 | GSP_GPU::Command& cmd = gx_command_history.back(); |
| 63 | 63 | ||
| 64 | memcpy(&cmd, command_data, sizeof(GSP_GPU::Command)); | 64 | memcpy(&cmd, command_data, sizeof(GSP_GPU::Command)); |
| 65 | 65 | ||