forked from qt-creator/qt-creator
LookupContext: Replace QSharedPointer with std::shared_ptr
According to https://wiki.qt.io/Things_To_Look_Out_For_In_Reviews QSharedPointer impl is poor and it's going to be removed from Qt 7. Change-Id: Ia7ec4b427c5971d6bd375659b291a9aad2ead253 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -730,7 +730,7 @@ bool ResolveExpression::visit(SimpleNameAST *ast)
|
||||
QSet<const Declaration* >(_autoDeclarationsBeingResolved) << decl);
|
||||
|
||||
const ExpressionDocumentHelper exprHelper(exprTyper.preprocessedExpression(initializer),
|
||||
_context.bindings()->control().data());
|
||||
_context.bindings()->control().get());
|
||||
const Document::Ptr exprDoc = exprHelper.document;
|
||||
|
||||
DeduceAutoCheck deduceAuto(ast->name->identifier(), exprDoc->translationUnit());
|
||||
@@ -742,7 +742,7 @@ bool ResolveExpression::visit(SimpleNameAST *ast)
|
||||
if (typeItems.empty())
|
||||
continue;
|
||||
|
||||
Clone cloner(_context.bindings()->control().data());
|
||||
Clone cloner(_context.bindings()->control().get());
|
||||
|
||||
for (int n = 0; n < typeItems.size(); ++ n) {
|
||||
FullySpecifiedType newType = cloner.type(typeItems[n].type(), nullptr);
|
||||
|
||||
Reference in New Issue
Block a user