diff options
author | Alessandro Portale <alessandro.portale@qt.io> | 2021-02-15 00:49:15 +0100 |
---|---|---|
committer | Alessandro Portale <alessandro.portale@qt.io> | 2021-02-24 08:27:10 +0000 |
commit | b2b6c64e6ae0fbaa6de8a6756c80a1287c762e84 (patch) | |
tree | 8f977adf3cba07726ac04775a730a732944d02c4 /src/plugins/projectexplorer/outputparser_test.cpp | |
parent | 925c4a3198f3b903575af6c9aabf280c1087c9ff (diff) |
Don't detach temporary containers
Change-Id: I736cfc61c81995a81b056b3e3e5703ded5912525
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/outputparser_test.cpp')
-rw-r--r-- | src/plugins/projectexplorer/outputparser_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/projectexplorer/outputparser_test.cpp b/src/plugins/projectexplorer/outputparser_test.cpp index d1d25a3c67..a70a33a8d8 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); } } |