aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/gpu_debugger.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2015-02-18 17:36:34 -0500
committerbunnei <bunneidev@gmail.com>2015-02-18 17:36:34 -0500
commitec8f2210e3d437b93313f2565170fde393fcaae5 (patch)
tree26ac08576ebd4b00e9ed8224fada208288c555de /src/video_core/gpu_debugger.h
parent4a48b017ca7fe8fe68dfc84d70864ef6aea6a266 (diff)
parent5d2366e1e9adaa5b4275127dff5005f2ef2f8ff8 (diff)
Merge pull request #580 from lioncash/emplace
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.h4
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:
if (observers.empty())
return;
- gx_command_history.push_back(GSP_GPU::Command());
- GSP_GPU::Command& cmd = gx_command_history[gx_command_history.size()-1];
+ gx_command_history.emplace_back();
+ GSP_GPU::Command& cmd = gx_command_history.back();
memcpy(&cmd, command_data, sizeof(GSP_GPU::Command));