diff options
author | bunnei <bunneidev@gmail.com> | 2020-12-02 23:08:43 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-02 23:08:43 -0800 |
commit | 88089c87546b62536a27738f5ee03dff52fa76e9 (patch) | |
tree | 5221c80d0ac3e7bbdb0c342098378e6c84951658 /src/core/core_timing.h | |
parent | 9abb23cd2700b57611fc25bce67581eaa6d4d3b7 (diff) | |
parent | 1ea6bdef058a789e2771511f741bffcca73c3525 (diff) |
Merge pull request #5000 from lioncash/audio-error
audio_core: Make shadowing and unused parameters errors
Diffstat (limited to 'src/core/core_timing.h')
-rw-r--r-- | src/core/core_timing.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/core_timing.h b/src/core/core_timing.h index b0b6036e42..77ff4c6fe7 100644 --- a/src/core/core_timing.h +++ b/src/core/core_timing.h @@ -27,8 +27,8 @@ using TimedCallback = /// Contains the characteristics of a particular event. struct EventType { - EventType(TimedCallback&& callback, std::string&& name) - : callback{std::move(callback)}, name{std::move(name)} {} + explicit EventType(TimedCallback&& callback_, std::string&& name_) + : callback{std::move(callback_)}, name{std::move(name_)} {} /// The event's callback function. TimedCallback callback; @@ -67,8 +67,8 @@ public: void Shutdown(); /// Sets if emulation is multicore or single core, must be set before Initialize - void SetMulticore(bool is_multicore) { - this->is_multicore = is_multicore; + void SetMulticore(bool is_multicore_) { + is_multicore = is_multicore_; } /// Check if it's using host timing. |