diff options
| author | Lioncash <mathew1800@gmail.com> | 2020-10-26 19:36:58 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2020-10-26 21:06:15 -0400 |
| commit | c3f019b9eb5c233ff7ac966d59a1601275e5e448 (patch) | |
| tree | 020a521bc01f9ace59eaa94df9f13b6ffd0cc465 /src/yuzu/applets/controller.cpp | |
| parent | 59a56fa8109fd08f71d3a38d2873edec6cedea22 (diff) | |
controller: Pass ControllerParameters by reference in ReconfigureControllers()
Prevents unnecessary copies and heap reallocations from occurring.
Diffstat (limited to 'src/yuzu/applets/controller.cpp')
| -rw-r--r-- | src/yuzu/applets/controller.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/yuzu/applets/controller.cpp b/src/yuzu/applets/controller.cpp index 2760487a3a..a3f7a0f622 100644 --- a/src/yuzu/applets/controller.cpp +++ b/src/yuzu/applets/controller.cpp @@ -589,7 +589,7 @@ QtControllerSelector::QtControllerSelector(GMainWindow& parent) { QtControllerSelector::~QtControllerSelector() = default; void QtControllerSelector::ReconfigureControllers( - std::function<void()> callback, Core::Frontend::ControllerParameters parameters) const { + std::function<void()> callback, const Core::Frontend::ControllerParameters& parameters) const { this->callback = std::move(callback); emit MainWindowReconfigureControllers(parameters); } |
