Fix minor issues found by EBN

This commit is contained in:
Yuri Chornoivan 2019-10-28 16:33:08 +02:00
parent e6dc4739c3
commit 96ebcb03df

View file

@ -190,7 +190,7 @@ bool cmdInstall(const QString &archive, QString &errorText)
return false;
}
if (archive.endsWith(".desktop")) {
if (archive.endsWith(QLatin1String(".desktop"))) {
// Append basename to destination directory
const auto dest = QDir(serviceDir).absoluteFilePath(QFileInfo(archive).fileName());
qInfo() << "Single-File Service-Menu" << archive << dest;
@ -254,7 +254,7 @@ bool cmdInstall(const QString &archive, QString &errorText)
bool cmdUninstall(const QString &archive, QString &errorText)
{
const auto serviceDir = getServiceMenusDir();
if (archive.endsWith(".desktop")) {
if (archive.endsWith(QLatin1String(".desktop"))) {
// Append basename to destination directory
const auto dest = QDir(serviceDir).absoluteFilePath(QFileInfo(archive).fileName());
QFile file(dest);