core/video_core: Use in-place construction where possible
This commit is contained in:
parent
12181c8a64
commit
5d2366e1e9
3 changed files with 5 additions and 5 deletions
|
@ -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));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue