mirror of
https://github.com/fergalmoran/flameshot.git
synced 2026-02-16 23:44:16 +00:00
Fix some issues detected by Clazy (#384)
* Fix old style connect * Fix unneeded QString memory allocations
This commit is contained in:
@@ -21,11 +21,11 @@
|
||||
#include <QDir>
|
||||
|
||||
const QString PathInfo::whiteIconPath() {
|
||||
return ":/img/material/white/";
|
||||
return QStringLiteral(":/img/material/white/");
|
||||
}
|
||||
|
||||
const QString PathInfo::blackIconPath() {
|
||||
return ":/img/material/black/";
|
||||
return QStringLiteral(":/img/material/black/");
|
||||
}
|
||||
|
||||
QStringList PathInfo::translationsPaths() {
|
||||
@@ -34,10 +34,10 @@ QStringList PathInfo::translationsPaths() {
|
||||
QString trPath = QDir::toNativeSeparators(binaryPath + "/translations") ;
|
||||
#if defined(Q_OS_LINUX) || defined(Q_OS_UNIX)
|
||||
return QStringList()
|
||||
<< QString(APP_PREFIX) + "/share/flameshot/translations"
|
||||
<< QStringLiteral(APP_PREFIX) + "/share/flameshot/translations"
|
||||
<< trPath
|
||||
<< "/usr/share/flameshot/translations"
|
||||
<< "/usr/local/share/flameshot/translations";
|
||||
<< QStringLiteral("/usr/share/flameshot/translations")
|
||||
<< QStringLiteral("/usr/local/share/flameshot/translations");
|
||||
#elif defined(Q_OS_WIN)
|
||||
return QStringList()
|
||||
<< trPath;
|
||||
|
||||
Reference in New Issue
Block a user