AutoTest: Avoid crash on concurrent access

Partially reverts 91bdbb61ec as
the symbol lookup will update the snapshot's cache. As there
are concurrent threads accessing the snapshot we may end up in
a crash.

Change-Id: I2aaf5e403b10cba2b26915cbe7b4712c43c4957b
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
Christian Stenger
2023-07-10 15:53:38 +02:00
parent d4260dab85
commit fdf79f0234

View File

@@ -34,7 +34,7 @@ public:
private: private:
CppEditor::SymbolFinder m_symbolFinder; CppEditor::SymbolFinder m_symbolFinder;
QString m_className; QString m_className;
const CPlusPlus::Snapshot &m_snapshot; CPlusPlus::Snapshot m_snapshot;
QMap<QString, QtTestCodeLocationAndType> m_privSlots; QMap<QString, QtTestCodeLocationAndType> m_privSlots;
bool m_valid = false; bool m_valid = false;
bool m_inherited = false; bool m_inherited = false;