Commit 868329c3 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

fwupd: no need to instantiate the QLatin1String to compare strings

parent fe85668b
......@@ -109,7 +109,7 @@ FwupdResource * FwupdBackend::createRelease(FwupdDevice *device)
return nullptr;
/* the same as we have already */
if(QLatin1Literal(fwupd_device_get_version(device)) == QLatin1Literal(fwupd_release_get_version(release)))
if(qstrcmp(fwupd_device_get_version(device), fwupd_release_get_version(release)) == 0)
qWarning() << "Fwupd Error: same firmware version as installed";
Supports Markdown
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