summaryrefslogtreecommitdiff
path: root/src/plugins/autotest/quick/quicktestparser.cpp
diff options
context:
space:
mode:
authorChristian Stenger <christian.stenger@qt.io>2022-07-29 12:35:38 +0200
committerChristian Stenger <christian.stenger@qt.io>2022-08-02 06:05:42 +0000
commit3c41f7fe3c9eac5ff9d153c61277db974c5fbeb0 (patch)
treebc118910ac95d5943063e01fab1f455e6754d51d /src/plugins/autotest/quick/quicktestparser.cpp
parent28a99221ee444801e9b419282dbd1b6a07eae1b4 (diff)
downloadqt-creator-3c41f7fe3c9eac5ff9d153c61277db974c5fbeb0.tar.gz
AutoTest: Do not use reference for file content
Change-Id: Iadad6c84e148604fa04d491f59be2d3a0987517b Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/autotest/quick/quicktestparser.cpp')
-rw-r--r--src/plugins/autotest/quick/quicktestparser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/autotest/quick/quicktestparser.cpp b/src/plugins/autotest/quick/quicktestparser.cpp
index 55d638d176..fbb497cbaa 100644
--- a/src/plugins/autotest/quick/quicktestparser.cpp
+++ b/src/plugins/autotest/quick/quicktestparser.cpp
@@ -137,7 +137,7 @@ QString QuickTestParser::quickTestName(const CPlusPlus::Document::Ptr &doc) cons
}
- const QByteArray &fileContent = getFileContent(filePath);
+ const QByteArray fileContent = getFileContent(filePath);
// check for using quick_test_main() directly
CPlusPlus::Document::Ptr document = m_cppSnapshot.preprocessedDocument(fileContent, filePath);
if (document.isNull())