Remove silencing -Wclazy-qt6-deprecated-api-fixes to workaround clazy bugs
This commit is contained in:
@@ -101,9 +101,9 @@ QList<DeviceFinder::Device> AlsaDeviceFinder::ListDevices() {
|
||||
device.card = card;
|
||||
device.device = dev;
|
||||
|
||||
device.value = QString("hw:%1,%2").arg(card).arg(dev); // clazy:exclude=qt6-deprecated-api-fixes
|
||||
device.value = QString("hw:%1,%2").arg(card).arg(dev);
|
||||
ret.append(device);
|
||||
device.value = QString("plughw:%1,%2").arg(card).arg(dev); // clazy:exclude=qt6-deprecated-api-fixes
|
||||
device.value = QString("plughw:%1,%2").arg(card).arg(dev);
|
||||
ret.append(device);
|
||||
|
||||
}
|
||||
|
||||
@@ -68,7 +68,7 @@ QList<DeviceFinder::Device> AlsaPCMDeviceFinder::ListDevices() {
|
||||
}
|
||||
|
||||
Device device;
|
||||
device.value = name; // clazy:exclude=qt6-deprecated-api-fixes
|
||||
device.value = name;
|
||||
device.description = description;
|
||||
device.iconname = GuessIconName(device.description);
|
||||
ret << device; // clazy:exclude=reserve-candidates
|
||||
|
||||
@@ -124,7 +124,7 @@ void PulseDeviceFinder::GetSinkInfoCallback(pa_context *c, const pa_sink_info *i
|
||||
if (info) {
|
||||
Device dev;
|
||||
dev.description = QString::fromUtf8(info->description);
|
||||
dev.value = QString::fromUtf8(info->name); // clazy:exclude=qt6-deprecated-api-fixes
|
||||
dev.value = QString::fromUtf8(info->name);
|
||||
dev.iconname = GuessIconName(dev.description);
|
||||
|
||||
state->devices.append(dev);
|
||||
|
||||
Reference in New Issue
Block a user