Prefer using case insensitive comparisons to toLower + equals

Signed-off-by: Victoria Fischer <victoria.fischer@mbition.io>
wilder/Plasma/6.3
Aleix Pol Gonzalez 1 year ago committed by Aleix Pol
parent 2d5ed0c426
commit 7034fd10d0
  1. 4
      src/utils/udev.cpp

@ -242,8 +242,8 @@ QString UdevDevice::action() const
bool UdevDevice::isHotpluggable() const
{
QString devPath = QString::fromUtf8(udev_device_get_devpath(m_device));
return devPath.toLower().contains("usb");
const auto devPath = QString::fromUtf8(udev_device_get_devpath(m_device));
return devPath.contains("usb", Qt::CaseInsensitive);
}
UdevMonitor::UdevMonitor(Udev *udev)

Loading…
Cancel
Save