libinput/device: Remove unneeded toVector call on variable that is already a vector

In Qt5, this variable was a QList and thus the conversion to a vector was needed
This commit is contained in:
Alexander Lohnau 2023-10-22 06:52:26 +02:00
parent 1b1cc67792
commit bffff9470d

View file

@ -177,7 +177,7 @@ struct ConfigData<CalibrationMatrix> : public ConfigDataBase
if (values.hasKey(key.constData())) {
auto list = values.readEntry(key.constData(), QList<float>());
if (list.size() == 16) {
device->setCalibrationMatrix(QMatrix4x4{list.toVector().constData()});
device->setCalibrationMatrix(QMatrix4x4{list.constData()});
return;
}
}