AutoTest: Do not use reference for file content

Change-Id: Iadad6c84e148604fa04d491f59be2d3a0987517b
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Christian Stenger
2022-07-29 12:35:38 +02:00
parent 28a99221ee
commit 3c41f7fe3c

View File

@@ -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())