diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2019-02-03 12:54:10 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2019-02-09 12:13:30 +0100 |
commit | 7dd05e0be7a1243d7f3026fadd3492eb054006fb (patch) | |
tree | 422ad97e9347c3943eef5ca2205e064dab64716d /options/globals.cpp | |
parent | 6b82b38a841ce2b9c98e1c4671f51147e1d2a453 (diff) |
options: sprinkle some QStringLiteral
Diffstat (limited to 'options/globals.cpp')
-rw-r--r-- | options/globals.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/options/globals.cpp b/options/globals.cpp index 5f1bda67..0f0e536b 100644 --- a/options/globals.cpp +++ b/options/globals.cpp @@ -117,7 +117,7 @@ QString ini_pathname() const auto dir = ini_directory(); if (dir.isEmpty()) return {}; - return dir + "/" + ini_filename(); + return dir + QStringLiteral("/") + ini_filename(); } QString ini_combine(const QString& filename) @@ -129,9 +129,9 @@ QStringList ini_list() { const auto dirname = ini_directory(); if (dirname == "") - return QStringList(); + return {}; QDir settings_dir(dirname); - QStringList list = settings_dir.entryList( QStringList { "*.ini" } , QDir::Files, QDir::Name ); + QStringList list = settings_dir.entryList( QStringList { QStringLiteral("*.ini") } , QDir::Files, QDir::Name ); std::sort(list.begin(), list.end()); return list; } |