aboutsummaryrefslogtreecommitdiff
path: root/autotests/kconfig_compiler
diff options
context:
space:
mode:
Diffstat (limited to 'autotests/kconfig_compiler')
-rw-r--r--autotests/kconfig_compiler/kconfigcompiler_test.cpp4
-rw-r--r--autotests/kconfig_compiler/kconfigcompiler_test_signals.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/autotests/kconfig_compiler/kconfigcompiler_test.cpp b/autotests/kconfig_compiler/kconfigcompiler_test.cpp
index 231e3c45..88b462ef 100644
--- a/autotests/kconfig_compiler/kconfigcompiler_test.cpp
+++ b/autotests/kconfig_compiler/kconfigcompiler_test.cpp
@@ -87,7 +87,7 @@ static CompilerTestSet willFailCases = {
void KConfigCompiler_Test::initTestCase()
{
- m_diffExe = QStandardPaths::findExecutable("diff");
+ m_diffExe = QStandardPaths::findExecutable( QStringLiteral("diff") );
if (m_diffExe.isEmpty()) {
qDebug() << "diff command not found, detailed info on comparison failure will not be available.";
}
@@ -165,7 +165,7 @@ void KConfigCompiler_Test::appendFileDiff(const QString &oldFile, const QString
}
QStringList args;
- args << "-u";
+ args << QStringLiteral("-u");
args << QFileInfo(oldFile).absoluteFilePath();
args << QFileInfo(newFile).absoluteFilePath();
diff --git a/autotests/kconfig_compiler/kconfigcompiler_test_signals.cpp b/autotests/kconfig_compiler/kconfigcompiler_test_signals.cpp
index 9a26ca1e..43e74aef 100644
--- a/autotests/kconfig_compiler/kconfigcompiler_test_signals.cpp
+++ b/autotests/kconfig_compiler/kconfigcompiler_test_signals.cpp
@@ -132,7 +132,7 @@ void KConfigCompiler_Test_Signals::testSetters()
QCOMPARE(spy.count(), 1);
args = spy.takeFirst();
QCOMPARE(args.size(), 1);
- QCOMPARE(args[0].value<QString>(), changedValue);
+ QCOMPARE(args[0].toString(), changedValue);
//reset to default values via setDefaults()
QVERIFY(params.getter() != params.defaultGetter());