Commit 64938034 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

fwupd: No need to make the code hard to read for no reason

was doing const char* -> QString -> QByteArray -> const char*
parent e1492f67
......@@ -64,7 +64,7 @@ public:
}
else if(value.toInt() == Qt::Unchecked)
{
if(fwupd_client_modify_remote(m_backend->backend->client,fwupd_remote_get_id(remote),QStringLiteral("Enabled").toUtf8().constData(),(QStringLiteral("false").toUtf8().constData()),nullptr,nullptr))
if(fwupd_client_modify_remote(m_backend->backend->client, fwupd_remote_get_id(remote), "Enabled", "false", nullptr, nullptr))
item->setData(value, role);
}
......
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