summaryrefslogtreecommitdiff
path: root/src/core/frontend/applets/controller.cpp
diff options
context:
space:
mode:
authorGravatar Lioncash2020-10-26 19:36:58 -0400
committerGravatar Lioncash2020-10-26 21:06:15 -0400
commit6b5f56532451631b63a57ca858dabc111b05711b (patch)
tree020a521bc01f9ace59eaa94df9f13b6ffd0cc465 /src/core/frontend/applets/controller.cpp
parentgeneral: Use template deduction guides for lock_guard (diff)
downloadyuzu-6b5f56532451631b63a57ca858dabc111b05711b.tar.gz
yuzu-6b5f56532451631b63a57ca858dabc111b05711b.tar.xz
yuzu-6b5f56532451631b63a57ca858dabc111b05711b.zip
controller: Pass ControllerParameters by reference in ReconfigureControllers()
Prevents unnecessary copies and heap reallocations from occurring.
Diffstat (limited to 'src/core/frontend/applets/controller.cpp')
-rw-r--r--src/core/frontend/applets/controller.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/frontend/applets/controller.cpp b/src/core/frontend/applets/controller.cpp
index c5d65f2d0..5582091f4 100644
--- a/src/core/frontend/applets/controller.cpp
+++ b/src/core/frontend/applets/controller.cpp
@@ -19,7 +19,7 @@ DefaultControllerApplet::DefaultControllerApplet(Service::SM::ServiceManager& se
19DefaultControllerApplet::~DefaultControllerApplet() = default; 19DefaultControllerApplet::~DefaultControllerApplet() = default;
20 20
21void DefaultControllerApplet::ReconfigureControllers(std::function<void()> callback, 21void DefaultControllerApplet::ReconfigureControllers(std::function<void()> callback,
22 ControllerParameters parameters) const { 22 const ControllerParameters& parameters) const {
23 LOG_INFO(Service_HID, "called, deducing the best configuration based on the given parameters!"); 23 LOG_INFO(Service_HID, "called, deducing the best configuration based on the given parameters!");
24 24
25 auto& npad = 25 auto& npad =