Commit 846357c5 authored by Kurt Hindenburg's avatar Kurt Hindenburg
Browse files

Fix some incorrectly used QLatin1String

parent 31fcbd11
......@@ -209,7 +209,7 @@ void DBusTest::testSessions()
// set title to, what title should be
QMap<QString, QString> titleMap;
titleMap[QStringLiteral("Shell")] = QLatin1String("Shell");
titleMap[QStringLiteral("Shell")] = QStringLiteral("Shell");
// BUG: It appears that Session::LocalTabTitle is set to Shell and
// doesn't change. While RemoteTabTitle is actually the LocalTabTitle
......@@ -69,7 +69,7 @@ void ShellCommandTest::testExpandEnvironmentVariable()
const QString expected = text.replace('$' + env, value);
QCOMPARE(result, expected);
text = QLatin1String("PATH=$PATH:\\$ESCAPED:~/bin");
text = QStringLiteral("PATH=$PATH:\\$ESCAPED:~/bin");
qputenv(env.toLocal8Bit().constData(), value.toLocal8Bit());
const QString result2 = ShellCommand::expand(text);
const QString expected2 = text.replace('$' + env, value);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment