forked from qt-creator/qt-creator
C++: fix crash during code completion with base template class
ResolveExpression has to have a reference of ContextLookup. If not there will be a crash because of deleted instanitated base template class. Task-number: QTCREATORBUG-9329 Change-Id: I7f8c83da0d81ac6311e76d15a897adbc70b08d75 Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
committed by
Erik Verbruggen
parent
2e9f6a7935
commit
80e1ae8059
@@ -122,7 +122,7 @@ protected:
|
||||
|
||||
private:
|
||||
Scope *_scope;
|
||||
LookupContext _context;
|
||||
const LookupContext& _context;
|
||||
Bind bind;
|
||||
QList<LookupItem> _results;
|
||||
bool _reference;
|
||||
|
||||
Reference in New Issue
Block a user