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
master
Alexander Lohnau 11 months ago
parent 1b1cc67792
commit bffff9470d

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

Loading…
Cancel
Save