diff options
| author | Yuri Chornoivan <[email protected]> | 2019-10-28 16:33:08 +0200 |
|---|---|---|
| committer | Yuri Chornoivan <[email protected]> | 2019-10-28 16:33:08 +0200 |
| commit | 96ebcb03dfda3208f7705d4ac560c421c10706d7 (patch) | |
| tree | 0353deeabafd61400014381dc214578e9f1cc28b /src | |
| parent | e6dc4739c3c7373f203a27cde2e31f8de1811e3a (diff) | |
Fix minor issues found by EBN
Diffstat (limited to 'src')
| -rw-r--r-- | src/settings/services/servicemenuinstaller/servicemenuinstaller.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/settings/services/servicemenuinstaller/servicemenuinstaller.cpp b/src/settings/services/servicemenuinstaller/servicemenuinstaller.cpp index 1144a50b8..b1f0f6316 100644 --- a/src/settings/services/servicemenuinstaller/servicemenuinstaller.cpp +++ b/src/settings/services/servicemenuinstaller/servicemenuinstaller.cpp @@ -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); |
