Commit 453721cc authored by Laurent Montel's avatar Laurent Montel 😁

Use isEmpty()

parent 2a592815
......@@ -93,7 +93,7 @@ void HalBasicTest::testProcessorList()
{
QList<Solid::Device> list = Solid::Device::listFromType(Solid::DeviceInterface::Processor, QString());
qDebug() << "Number of processors:" << list.size();
if (list.size() > 0) {
if (!list.isEmpty()) {
Solid::Processor *p = list[0].as<Solid::Processor>();
QVERIFY(p);
Solid::Processor::InstructionSets features = p->instructionSets();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment