From 5d2366e1e9adaa5b4275127dff5005f2ef2f8ff8 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 17 Feb 2015 17:42:28 -0500 Subject: core/video_core: Use in-place construction where possible --- src/video_core/gpu_debugger.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/video_core/gpu_debugger.h') 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)); -- cgit v1.2.3