aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Montel <[email protected]>2018-01-11 08:59:57 +0100
committerLaurent Montel <[email protected]>2018-01-11 08:59:57 +0100
commit37857b245e0f54d3982e61bafbf87c14601c9621 (patch)
treecd279ddd140993789a1304d64893c929496fea87
parentb59a497f01caa7edf1371ceb9dd37abf673aab21 (diff)
Assign directly value
-rw-r--r--src/private/xdgbasedirs.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/private/xdgbasedirs.cpp b/src/private/xdgbasedirs.cpp
index 9a933a6..996901c 100644
--- a/src/private/xdgbasedirs.cpp
+++ b/src/private/xdgbasedirs.cpp
@@ -38,9 +38,7 @@
static QStringList alternateExecPaths(const QString &path)
{
- QStringList pathList;
-
- pathList << path;
+ QStringList pathList{path};
#if defined(Q_OS_WIN) //krazy:exclude=cpp
pathList << path + QLatin1String(".exe");