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/debug_utils | |
| 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/debug_utils')
| -rw-r--r-- | src/video_core/debug_utils/debug_utils.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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() |