Commit 89f7326d authored by Yuri Chornoivan's avatar Yuri Chornoivan
Browse files

Fix minor issues found by EBN

parent 69b4a645
......@@ -186,7 +186,7 @@ QStringList DiscoverObject::modes() const
for(int i = obj->metaObject()->propertyOffset(); i<obj->metaObject()->propertyCount(); i++) {
QMetaProperty p = obj->metaObject()->property(i);
QByteArray compName = p.name();
if(compName.startsWith("top") && compName.endsWith("Comp")) {
if(compName.startsWith(QLatin1String("top")) && compName.endsWith(QLatin1String("Comp"))) {
ret += QString::fromLatin1(compName.mid(3, compName.length()-7));
}
}
......
......@@ -186,7 +186,7 @@ void OdrsReviewsBackend::usefulnessSubmitted()
QNetworkReply* reply = qobject_cast<QNetworkReply*>(sender());
if (reply->error() == QNetworkReply::NoError) {
qCWarning(LIBDISCOVER_LOG) << "Usefullness submitted";
qCWarning(LIBDISCOVER_LOG) << "Usefulness submitted";
} else {
qCWarning(LIBDISCOVER_LOG) << "Failed to submit usefulness: " << reply->errorString();
}
......
......@@ -1010,7 +1010,7 @@ bool FlatpakBackend::updateAppMetadata(FlatpakResource *resource, const QByteArr
bool FlatpakBackend::updateAppSize(FlatpakInstallation *flatpakInstallation, FlatpakResource *resource)
{
// Check if the size is already set, we should also distiguish between download and installed size,
// Check if the size is already set, we should also distinguish between download and installed size,
// right now it doesn't matter whether we get size for installed or not installed app, but if we
// start making difference then for not installed app check download and install size separately
......
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