diff --git a/src/plugins/clangtools/clangtoolsunittests.cpp b/src/plugins/clangtools/clangtoolsunittests.cpp index 512e6e71355..9d416f07cc1 100644 --- a/src/plugins/clangtools/clangtoolsunittests.cpp +++ b/src/plugins/clangtools/clangtoolsunittests.cpp @@ -128,7 +128,7 @@ void ClangToolsUnitTests::testProject() QVERIFY(waitForFinishedTool.wait(m_timeout)); // Check for errors - const QString errorText = waitForFinishedTool.takeFirst().first().toString(); + const QString errorText = waitForFinishedTool.takeFirst().constFirst().toString(); const bool finishedSuccessfully = errorText.isEmpty(); if (!finishedSuccessfully) qWarning("Error: %s", qPrintable(errorText)); diff --git a/src/plugins/cmakeprojectmanager/cmakeprojectimporter.cpp b/src/plugins/cmakeprojectmanager/cmakeprojectimporter.cpp index 03f5ecb51b1..4e31bad6b36 100644 --- a/src/plugins/cmakeprojectmanager/cmakeprojectimporter.cpp +++ b/src/plugins/cmakeprojectmanager/cmakeprojectimporter.cpp @@ -245,7 +245,7 @@ static FilePath qmakeFromCMakeCache(const CMakeConfig &config) if (!qmakeLocationTxt.open(QIODevice::ReadOnly)) { return FilePath(); } - FilePath qmakeLocation = FilePath::fromUtf8(qmakeLocationTxt.readLine().data()); + FilePath qmakeLocation = FilePath::fromUtf8(qmakeLocationTxt.readLine().constData()); qCDebug(cmInputLog) << "qmake location: " << qmakeLocation.toUserOutput(); return qmakeLocation; diff --git a/src/plugins/projectexplorer/outputparser_test.cpp b/src/plugins/projectexplorer/outputparser_test.cpp index d1d25a3c67b..a70a33a8d88 100644 --- a/src/plugins/projectexplorer/outputparser_test.cpp +++ b/src/plugins/projectexplorer/outputparser_test.cpp @@ -62,7 +62,7 @@ void OutputParserTester::testParsing(const QString &lines, { const auto terminator = new TestTerminator(this); if (!lineParsers().isEmpty()) - terminator->setRedirectionDetector(lineParsers().last()); + terminator->setRedirectionDetector(lineParsers().constLast()); addLineParser(terminator); reset(); @@ -113,7 +113,7 @@ TestTerminator::TestTerminator(OutputParserTester *t) : m_tester(t) { if (!t->lineParsers().isEmpty()) { - for (const Utils::FilePath &searchDir : t->lineParsers().first()->searchDirectories()) + for (const Utils::FilePath &searchDir : t->lineParsers().constFirst()->searchDirectories()) addSearchDir(searchDir); } }