mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-21 23:55:45 +00:00
controller: Pass ControllerParameters by reference in ReconfigureControllers()
Prevents unnecessary copies and heap reallocations from occurring.
This commit is contained in:
parent
59a56fa810
commit
c3f019b9eb
4 changed files with 9 additions and 7 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue