mirror of
https://github.com/PabloMK7/citra.git
synced 2024-11-15 19:43:27 +01:00
Warnings/QtMotionControls: There is no need to use std::move after std::make_unique.
This fixes a Clang warning about the move preventing copy elision (-Wpessimizing-move)
This commit is contained in:
parent
64b612bd60
commit
b80911162f
@ -30,7 +30,7 @@ CalibrationConfigurationDialog::CalibrationConfigurationDialog(QWidget* parent,
|
|||||||
setLayout(layout);
|
setLayout(layout);
|
||||||
|
|
||||||
using namespace InputCommon::CemuhookUDP;
|
using namespace InputCommon::CemuhookUDP;
|
||||||
job = std::move(std::make_unique<CalibrationConfigurationJob>(
|
job = std::make_unique<CalibrationConfigurationJob>(
|
||||||
host, port, pad_index, client_id,
|
host, port, pad_index, client_id,
|
||||||
[this](CalibrationConfigurationJob::Status status) {
|
[this](CalibrationConfigurationJob::Status status) {
|
||||||
QString text;
|
QString text;
|
||||||
@ -56,7 +56,7 @@ CalibrationConfigurationDialog::CalibrationConfigurationDialog(QWidget* parent,
|
|||||||
min_y = min_y_;
|
min_y = min_y_;
|
||||||
max_x = max_x_;
|
max_x = max_x_;
|
||||||
max_y = max_y_;
|
max_y = max_y_;
|
||||||
}));
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
CalibrationConfigurationDialog::~CalibrationConfigurationDialog() = default;
|
CalibrationConfigurationDialog::~CalibrationConfigurationDialog() = default;
|
||||||
|
Loading…
Reference in New Issue
Block a user