forked from qt-creator/qt-creator
C++: Introduce CreateBindings::Ptr
typedef for QSharedPointer<CreateBindings> Change-Id: Idf7a9984bb90da82407abd4b7dec9f40926beac8 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
de68ac5407
commit
cbc122e2e2
@@ -107,6 +107,8 @@ class CPLUSPLUS_EXPORT CreateBindings
|
||||
Q_DISABLE_COPY(CreateBindings)
|
||||
|
||||
public:
|
||||
typedef QSharedPointer<CreateBindings> Ptr;
|
||||
|
||||
CreateBindings(Document::Ptr thisDocument, const Snapshot &snapshot);
|
||||
virtual ~CreateBindings();
|
||||
|
||||
@@ -214,7 +216,7 @@ public:
|
||||
LookupContext(Document::Ptr expressionDocument,
|
||||
Document::Ptr thisDocument,
|
||||
const Snapshot &snapshot,
|
||||
QSharedPointer<CreateBindings> bindings = QSharedPointer<CreateBindings>());
|
||||
CreateBindings::Ptr bindings = CreateBindings::Ptr());
|
||||
|
||||
LookupContext(const LookupContext &other);
|
||||
LookupContext &operator = (const LookupContext &other);
|
||||
@@ -236,7 +238,7 @@ public:
|
||||
LookupScope *lookupParent(Symbol *symbol) const;
|
||||
|
||||
/// \internal
|
||||
QSharedPointer<CreateBindings> bindings() const
|
||||
CreateBindings::Ptr bindings() const
|
||||
{ return _bindings; }
|
||||
|
||||
static QList<const Name *> fullyQualifiedName(Symbol *symbol);
|
||||
@@ -264,7 +266,7 @@ private:
|
||||
Snapshot _snapshot;
|
||||
|
||||
// Bindings
|
||||
QSharedPointer<CreateBindings> _bindings;
|
||||
CreateBindings::Ptr _bindings;
|
||||
|
||||
bool m_expandTemplates;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user