diff options
author | Imran Tatriev <itatriev@gmail.com> | 2015-12-23 20:57:57 +0600 |
---|---|---|
committer | Imran Tatriev <itatriev@gmail.com> | 2015-12-23 20:57:57 +0600 |
commit | 74d30c02373383748219318372907539d8259250 (patch) | |
tree | 21e20ecb317dba98a073429796a3459b6faea133 /autotests | |
parent | 48d8290107091cb324633895f287ca47f70bb972 (diff) | |
download | kconfig-74d30c02373383748219318372907539d8259250.tar.gz kconfig-74d30c02373383748219318372907539d8259250.tar.bz2 |
Fix some Clazy warnings
Diffstat (limited to 'autotests')
-rw-r--r-- | autotests/kconfig_compiler/kconfigcompiler_test.cpp | 4 | ||||
-rw-r--r-- | autotests/kconfig_compiler/kconfigcompiler_test_signals.cpp | 2 |
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()); |