diff options
| author | 2020-06-02 16:37:06 +1000 | |
|---|---|---|
| committer | 2020-06-02 16:37:06 +1000 | |
| commit | 3a20e74f4056a03253e563510048e99ea548d5b4 (patch) | |
| tree | ebdd756d53851ea51af7765824bfc327a83264e4 /src/video_core/macro/macro.cpp | |
| parent | Favor switch case over jump table (diff) | |
| download | yuzu-3a20e74f4056a03253e563510048e99ea548d5b4.tar.gz yuzu-3a20e74f4056a03253e563510048e99ea548d5b4.tar.xz yuzu-3a20e74f4056a03253e563510048e99ea548d5b4.zip | |
Pass by reference instead of copying parameters
Diffstat (limited to 'src/video_core/macro/macro.cpp')
| -rw-r--r-- | src/video_core/macro/macro.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/macro/macro.cpp b/src/video_core/macro/macro.cpp index 85a6e5dd4..d05a88479 100644 --- a/src/video_core/macro/macro.cpp +++ b/src/video_core/macro/macro.cpp | |||
| @@ -15,7 +15,7 @@ void MacroEngine::AddCode(u32 method, u32 data) { | |||
| 15 | uploaded_macro_code[method].push_back(data); | 15 | uploaded_macro_code[method].push_back(data); |
| 16 | } | 16 | } |
| 17 | 17 | ||
| 18 | void MacroEngine::Execute(u32 method, std::vector<u32> parameters) { | 18 | void MacroEngine::Execute(u32 method, std::vector<u32>& parameters) { |
| 19 | auto compiled_macro = macro_cache.find(method); | 19 | auto compiled_macro = macro_cache.find(method); |
| 20 | if (compiled_macro != macro_cache.end()) { | 20 | if (compiled_macro != macro_cache.end()) { |
| 21 | compiled_macro->second->Execute(parameters, method); | 21 | compiled_macro->second->Execute(parameters, method); |