forked from qt-creator/qt-creator
CppEditor: Fix crash on virtual function override lookup
...involving templates. Task-number: QTCREATORBUG-10496 Change-Id: I485d691043f27b03e120353f0dfd6a2fb0aa07ec Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
@@ -34,7 +34,9 @@
|
||||
|
||||
#include <cplusplus/CppDocument.h>
|
||||
#include <cplusplus/Symbols.h>
|
||||
#include <cplusplus/TypeOfExpression.h>
|
||||
|
||||
#include <QSharedPointer>
|
||||
#include <QTextCursor>
|
||||
|
||||
namespace CppEditor {
|
||||
@@ -50,6 +52,7 @@ public:
|
||||
|
||||
CPlusPlus::Class *startClass;
|
||||
CPlusPlus::Function *function;
|
||||
QSharedPointer<CPlusPlus::TypeOfExpression> typeOfExpression; // Keeps instantiated symbols.
|
||||
CPlusPlus::Snapshot snapshot;
|
||||
int cursorPosition;
|
||||
bool openInNextSplit;
|
||||
@@ -57,6 +60,7 @@ public:
|
||||
|
||||
virtual bool configure(const Parameters ¶meters);
|
||||
Parameters params() const { return m_params; }
|
||||
void clearParams() { m_params = Parameters(); }
|
||||
|
||||
bool isAsynchronous() const;
|
||||
bool supportsEditor(const Core::Id &editorId) const;
|
||||
|
||||
Reference in New Issue
Block a user