diff options
| -rw-r--r-- | src/core/core_timing.cpp | 2 | ||||
| -rw-r--r-- | src/video_core/debug_utils/debug_utils.cpp | 4 | ||||
| -rw-r--r-- | src/video_core/gpu_debugger.h | 4 |
3 files changed, 5 insertions, 5 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 | ||
diff --git a/src/video_core/debug_utils/debug_utils.cpp b/src/video_core/debug_utils/debug_utils.cpp index 8c4ec1044..0beb72e6b 100644 --- a/src/video_core/debug_utils/debug_utils.cpp +++ b/src/video_core/debug_utils/debug_utils.cpp | |||
| @@ -189,7 +189,7 @@ void DumpShader(const u32* binary_data, u32 binary_size, const u32* swizzle_data | |||
| 189 | ); | 189 | ); |
| 190 | 190 | ||
| 191 | if (it == output_info_table.end()) { | 191 | if (it == output_info_table.end()) { |
| 192 | output_info_table.push_back({}); | 192 | output_info_table.emplace_back(); |
| 193 | output_info_table.back().type = type; | 193 | output_info_table.back().type = type; |
| 194 | output_info_table.back().component_mask = component_mask; | 194 | output_info_table.back().component_mask = component_mask; |
| 195 | output_info_table.back().id = i; | 195 | output_info_table.back().id = i; |
| @@ -285,7 +285,7 @@ void OnPicaRegWrite(u32 id, u32 value) | |||
| 285 | if (!is_pica_tracing) | 285 | if (!is_pica_tracing) |
| 286 | return; | 286 | return; |
| 287 | 287 | ||
| 288 | pica_trace->writes.push_back({id, value}); | 288 | pica_trace->writes.emplace_back(id, value); |
| 289 | } | 289 | } |
| 290 | 290 | ||
| 291 | std::unique_ptr<PicaTrace> FinishPicaTracing() | 291 | std::unique_ptr<PicaTrace> FinishPicaTracing() |
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 | ||